Home / Function/ configure() — spring-boot Function Reference

configure() — spring-boot Function Reference

Architecture documentation for the configure() function in ThreadPoolTaskSchedulerBuilder.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  ac46133f_1e3d_5727_1d6d_0476c4e80935["configure()"]
  d2246bbf_18ef_f6df_bfe2_fea3bd2985b1["build()"]
  d2246bbf_18ef_f6df_bfe2_fea3bd2985b1 -->|calls| ac46133f_1e3d_5727_1d6d_0476c4e80935
  e0b2c4cf_74c1_fd5a_cead_591297f73c6a["get()"]
  ac46133f_1e3d_5727_1d6d_0476c4e80935 -->|calls| e0b2c4cf_74c1_fd5a_cead_591297f73c6a
  b3cd21e7_6a9c_5f92_2b2e_29a713193446["asInt()"]
  ac46133f_1e3d_5727_1d6d_0476c4e80935 -->|calls| b3cd21e7_6a9c_5f92_2b2e_29a713193446
  74f78909_084d_0d77_7505_2e246dae050f["to()"]
  ac46133f_1e3d_5727_1d6d_0476c4e80935 -->|calls| 74f78909_084d_0d77_7505_2e246dae050f
  style ac46133f_1e3d_5727_1d6d_0476c4e80935 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/task/ThreadPoolTaskSchedulerBuilder.java lines 211–222

	public <T extends ThreadPoolTaskScheduler> T configure(T taskScheduler) {
		PropertyMapper map = PropertyMapper.get();
		map.from(this.poolSize).to(taskScheduler::setPoolSize);
		map.from(this.awaitTermination).to(taskScheduler::setWaitForTasksToCompleteOnShutdown);
		map.from(this.awaitTerminationPeriod).asInt(Duration::getSeconds).to(taskScheduler::setAwaitTerminationSeconds);
		map.from(this.threadNamePrefix).to(taskScheduler::setThreadNamePrefix);
		map.from(this.taskDecorator).to(taskScheduler::setTaskDecorator);
		if (!CollectionUtils.isEmpty(this.customizers)) {
			this.customizers.forEach((customizer) -> customizer.customize(taskScheduler));
		}
		return taskScheduler;
	}

Domain

Subdomains

Calls

Called By

  • build()

Frequently Asked Questions

What does configure() do?
configure() is a function in the spring-boot codebase.
What does configure() call?
configure() calls 3 function(s): asInt, get, to.
What calls configure()?
configure() is called by 1 function(s): build.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free