public class AsyncTaskExecutorConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowCoreThreadTimeout
Whether core threads can time out (which is needed to scale down the threads)
|
protected Duration |
awaitTerminationPeriod
The time that is waited to gracefully shut down the
thread pool used for job execution
|
protected int |
corePoolSize
The minimal number of threads that are kept alive in the thread pool for
job execution
|
protected Duration |
keepAlive
The time a thread used for job execution must be kept
alive before it is destroyed.
|
protected int |
maxPoolSize
The maximum number of threads that are kept alive in the thread pool for
job execution
|
protected int |
queueSize
The size of the queue on which jobs to be executed are placed
|
protected String |
threadPoolNamingPattern
The naming pattern for the thread pool threads.
|
| Constructor and Description |
|---|
AsyncTaskExecutorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getAwaitTerminationPeriod() |
int |
getCorePoolSize() |
Duration |
getKeepAlive() |
int |
getMaxPoolSize() |
int |
getQueueSize() |
String |
getThreadPoolNamingPattern() |
boolean |
isAllowCoreThreadTimeout() |
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) |
protected int corePoolSize
protected int maxPoolSize
protected Duration keepAlive
protected int queueSize
protected boolean allowCoreThreadTimeout
protected Duration awaitTerminationPeriod
protected String threadPoolNamingPattern
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public Duration getKeepAlive()
public void setKeepAlive(Duration keepAlive)
public int getQueueSize()
public void setQueueSize(int queueSize)
public boolean isAllowCoreThreadTimeout()
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
public Duration getAwaitTerminationPeriod()
public void setAwaitTerminationPeriod(Duration awaitTerminationPeriod)
public String getThreadPoolNamingPattern()
public void setThreadPoolNamingPattern(String threadPoolNamingPattern)
public void setThreadNamePrefix(String prefix)
Copyright © 2022 Flowable. All rights reserved.