Class AsyncTaskExecutorConfiguration
java.lang.Object
org.flowable.common.engine.impl.async.AsyncTaskExecutorConfiguration
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether core threads can time out (which is needed to scale down the threads)protected DurationThe time that is waited to gracefully shut down the thread pool used for job executionprotected intThe minimal number of threads that are kept alive in the thread pool for job executionprotected DurationThe time a thread used for job execution must be kept alive before it is destroyed.protected intThe maximum number of threads that are kept alive in the thread pool for job executionprotected intThe size of the queue on which jobs to be executed are placedprotected StringThe naming pattern for the thread pool threads. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanvoidsetAllowCoreThreadTimeout(boolean allowCoreThreadTimeout) voidsetAwaitTerminationPeriod(Duration awaitTerminationPeriod) voidsetCorePoolSize(int corePoolSize) voidsetKeepAlive(Duration keepAlive) voidsetMaxPoolSize(int maxPoolSize) voidsetQueueSize(int queueSize) voidsetThreadNamePrefix(String prefix) voidsetThreadPoolNamingPattern(String threadPoolNamingPattern)
-
Field Details
-
corePoolSize
protected int corePoolSizeThe minimal number of threads that are kept alive in the thread pool for job execution -
maxPoolSize
protected int maxPoolSizeThe maximum number of threads that are kept alive in the thread pool for job execution -
keepAlive
The time a thread used for job execution must be kept alive before it is destroyed. Default setting is 5 seconds. Having a non-default setting of 0 takes resources, but in the case of many job executions it avoids creating new threads all the time. -
queueSize
protected int queueSizeThe size of the queue on which jobs to be executed are placed -
allowCoreThreadTimeout
protected boolean allowCoreThreadTimeoutWhether core threads can time out (which is needed to scale down the threads) -
awaitTerminationPeriod
The time that is waited to gracefully shut down the thread pool used for job execution -
threadPoolNamingPattern
The naming pattern for the thread pool threads.
-
-
Constructor Details
-
AsyncTaskExecutorConfiguration
public AsyncTaskExecutorConfiguration()
-
-
Method Details
-
getCorePoolSize
public int getCorePoolSize() -
setCorePoolSize
public void setCorePoolSize(int corePoolSize) -
getMaxPoolSize
public int getMaxPoolSize() -
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) -
getKeepAlive
-
setKeepAlive
-
getQueueSize
public int getQueueSize() -
setQueueSize
public void setQueueSize(int queueSize) -
isAllowCoreThreadTimeout
public boolean isAllowCoreThreadTimeout() -
setAllowCoreThreadTimeout
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout) -
getAwaitTerminationPeriod
-
setAwaitTerminationPeriod
-
getThreadPoolNamingPattern
-
setThreadPoolNamingPattern
-
setThreadNamePrefix
-