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

configure() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/task/SimpleAsyncTaskSchedulerBuilder.java lines 203–214

	public <T extends SimpleAsyncTaskScheduler> T configure(T taskScheduler) {
		PropertyMapper map = PropertyMapper.get();
		map.from(this.threadNamePrefix).to(taskScheduler::setThreadNamePrefix);
		map.from(this.concurrencyLimit).to(taskScheduler::setConcurrencyLimit);
		map.from(this.virtualThreads).to(taskScheduler::setVirtualThreads);
		map.from(this.taskTerminationTimeout).as(Duration::toMillis).to(taskScheduler::setTaskTerminationTimeout);
		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

Frequently Asked Questions

What does configure() do?
configure() is a function in the spring-boot codebase.
What does configure() call?
configure() calls 2 function(s): 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