类的使用
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) Addcustomizersthat should be applied to theSimpleAsyncTaskExecutor.SimpleAsyncTaskExecutorBuilder.additionalCustomizers(SimpleAsyncTaskExecutorCustomizer... customizers) Addcustomizersthat should be applied to theSimpleAsyncTaskExecutor.SimpleAsyncTaskExecutorBuilder.concurrencyLimit(Integer concurrencyLimit) Set the concurrency limit.SimpleAsyncTaskExecutorBuilder.customizers(Iterable<? extends SimpleAsyncTaskExecutorCustomizer> customizers) Set thecustomizersthat should be applied to theSimpleAsyncTaskExecutor.SimpleAsyncTaskExecutorBuilder.customizers(SimpleAsyncTaskExecutorCustomizer... customizers) Set thecustomizersthat should be applied to theSimpleAsyncTaskExecutor.SimpleAsyncTaskExecutorBuilder.rejectTasksWhenLimitReached(boolean rejectTasksWhenLimitReached) Set whether to reject tasks when the concurrency limit has been reached.SimpleAsyncTaskExecutorBuilder.taskDecorator(TaskDecorator taskDecorator) Set theTaskDecoratorto use ornullto 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.