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

configure() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  519acd50_7122_b7fc_0f7a_8a9a90e71f8e["configure()"]
  2693ec00_fa76_9dbf_6f28_f0467ede6af3["build()"]
  2693ec00_fa76_9dbf_6f28_f0467ede6af3 -->|calls| 519acd50_7122_b7fc_0f7a_8a9a90e71f8e
  e0b2c4cf_74c1_fd5a_cead_591297f73c6a["get()"]
  519acd50_7122_b7fc_0f7a_8a9a90e71f8e -->|calls| e0b2c4cf_74c1_fd5a_cead_591297f73c6a
  b3cd21e7_6a9c_5f92_2b2e_29a713193446["asInt()"]
  519acd50_7122_b7fc_0f7a_8a9a90e71f8e -->|calls| b3cd21e7_6a9c_5f92_2b2e_29a713193446
  9d2c4199_8539_3d81_204f_90b3526e5d8d["whenHasText()"]
  519acd50_7122_b7fc_0f7a_8a9a90e71f8e -->|calls| 9d2c4199_8539_3d81_204f_90b3526e5d8d
  74f78909_084d_0d77_7505_2e246dae050f["to()"]
  519acd50_7122_b7fc_0f7a_8a9a90e71f8e -->|calls| 74f78909_084d_0d77_7505_2e246dae050f
  style 519acd50_7122_b7fc_0f7a_8a9a90e71f8e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/task/ThreadPoolTaskExecutorBuilder.java lines 326–342

	public <T extends ThreadPoolTaskExecutor> T configure(T taskExecutor) {
		PropertyMapper map = PropertyMapper.get();
		map.from(this.queueCapacity).to(taskExecutor::setQueueCapacity);
		map.from(this.corePoolSize).to(taskExecutor::setCorePoolSize);
		map.from(this.maxPoolSize).to(taskExecutor::setMaxPoolSize);
		map.from(this.keepAlive).asInt(Duration::getSeconds).to(taskExecutor::setKeepAliveSeconds);
		map.from(this.allowCoreThreadTimeOut).to(taskExecutor::setAllowCoreThreadTimeOut);
		map.from(this.acceptTasksAfterContextClose).to(taskExecutor::setAcceptTasksAfterContextClose);
		map.from(this.awaitTermination).to(taskExecutor::setWaitForTasksToCompleteOnShutdown);
		map.from(this.awaitTerminationPeriod).as(Duration::toMillis).to(taskExecutor::setAwaitTerminationMillis);
		map.from(this.threadNamePrefix).whenHasText().to(taskExecutor::setThreadNamePrefix);
		map.from(this.taskDecorator).to(taskExecutor::setTaskDecorator);
		if (!CollectionUtils.isEmpty(this.customizers)) {
			this.customizers.forEach((customizer) -> customizer.customize(taskExecutor));
		}
		return taskExecutor;
	}

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 4 function(s): asInt, get, to, whenHasText.
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