类的使用
cn.taketoday.scheduling.support.TaskExecutorBuilder
使用TaskExecutorBuilder的程序包
-
cn.taketoday.scheduling.support中TaskExecutorBuilder的使用
修饰符和类型方法说明TaskExecutorBuilder.additionalCustomizers(TaskExecutorCustomizer... customizers) AddTaskExecutorCustomizersthat should be applied to theThreadPoolTaskExecutor.TaskExecutorBuilder.additionalCustomizers(Iterable<TaskExecutorCustomizer> customizers) AddTaskExecutorCustomizersthat should be applied to theThreadPoolTaskExecutor.TaskExecutorBuilder.allowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) Set whether core threads are allowed to time out.TaskExecutorBuilder.awaitTermination(boolean awaitTermination) Set whether the executor should wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.TaskExecutorBuilder.awaitTerminationPeriod(Duration awaitTerminationPeriod) Set the maximum time the executor is supposed to block on shutdown.TaskExecutorBuilder.corePoolSize(int corePoolSize) Set the core number of threads.TaskExecutorBuilder.customizers(TaskExecutorCustomizer... customizers) Set theTaskExecutorCustomizersthat should be applied to theThreadPoolTaskExecutor.TaskExecutorBuilder.customizers(Iterable<TaskExecutorCustomizer> customizers) Set theTaskExecutorCustomizersthat should be applied to theThreadPoolTaskExecutor.Set the time limit for which threads may remain idle before being terminated.TaskExecutorBuilder.maxPoolSize(int maxPoolSize) Set the maximum allowed number of threads.TaskExecutorBuilder.queueCapacity(int queueCapacity) Set the capacity of the queue.TaskExecutorBuilder.taskDecorator(cn.taketoday.core.task.TaskDecorator taskDecorator) Set theTaskDecoratorto use ornullto not use any.TaskExecutorBuilder.threadNamePrefix(String threadNamePrefix) Set the prefix to use for the names of newly created threads.