Class AsyncTaskExecutorConfiguration
java.lang.Object
org.flowable.common.engine.impl.async.AsyncTaskExecutorConfiguration
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether core threads can time out (which is needed to scale down the threads)protected Duration
The time that is waited to gracefully shut down the thread pool used for job executionprotected int
The minimal number of threads that are kept alive in the thread pool for job executionprotected Duration
The time a thread used for job execution must be kept alive before it is destroyed.protected int
The maximum number of threads that are kept alive in the thread pool for job executionprotected int
The size of the queue on which jobs to be executed are placedprotected String
The naming pattern for the thread pool threads. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
void
setAllowCoreThreadTimeout
(boolean allowCoreThreadTimeout) void
setAwaitTerminationPeriod
(Duration awaitTerminationPeriod) void
setCorePoolSize
(int corePoolSize) void
setKeepAlive
(Duration keepAlive) void
setMaxPoolSize
(int maxPoolSize) void
setQueueSize
(int queueSize) void
setThreadNamePrefix
(String prefix) void
setThreadPoolNamingPattern
(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
-