类的使用
org.springframework.boot.task.SimpleAsyncTaskExecutorBuilder
程序包
说明
Utilities and classes related to task execution and scheduling.
-
org.springframework.boot.task中SimpleAsyncTaskExecutorBuilder的使用
修饰符和类型方法说明SimpleAsyncTaskExecutorBuilder.additionalCustomizers
(Iterable<? extends SimpleAsyncTaskExecutorCustomizer> customizers) Addcustomizers
that should be applied to theSimpleAsyncTaskExecutor
.SimpleAsyncTaskExecutorBuilder.additionalCustomizers
(SimpleAsyncTaskExecutorCustomizer... customizers) Addcustomizers
that should be applied to theSimpleAsyncTaskExecutor
.SimpleAsyncTaskExecutorBuilder.concurrencyLimit
(Integer concurrencyLimit) Set the concurrency limit.SimpleAsyncTaskExecutorBuilder.customizers
(Iterable<? extends SimpleAsyncTaskExecutorCustomizer> customizers) Set thecustomizers
that should be applied to theSimpleAsyncTaskExecutor
.SimpleAsyncTaskExecutorBuilder.customizers
(SimpleAsyncTaskExecutorCustomizer... customizers) Set thecustomizers
that should be applied to theSimpleAsyncTaskExecutor
.SimpleAsyncTaskExecutorBuilder.taskDecorator
(TaskDecorator taskDecorator) Set theTaskDecorator
to use ornull
to not use any.SimpleAsyncTaskExecutorBuilder.taskTerminationTimeout
(Duration taskTerminationTimeout) Set the task termination timeout.SimpleAsyncTaskExecutorBuilder.threadNamePrefix
(String threadNamePrefix) Set the prefix to use for the names of newly created threads.SimpleAsyncTaskExecutorBuilder.virtualThreads
(Boolean virtualThreads) Set whether to use virtual threads.