Class JobThreadPoolConfiguration
java.lang.Object
com.flowable.spring.boot.properties.JobThreadPoolConfiguration
public class JobThreadPoolConfiguration
extends java.lang.Object
Common configuration for a job thread pool.
- See Also:
- About ExecutorService(s) blog
-
Constructor Summary
Constructors Constructor Description JobThreadPoolConfiguration() -
Method Summary
Modifier and Type Method Description intgetAwaitTerminationSeconds()intgetCorePoolSize()java.time.DurationgetKeepAlive()intgetMaxPoolSize()intgetQueueCapacity()java.lang.StringgetThreadNamePrefix()booleanisAllowCoreThreadTimeout()voidsetAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)voidsetAwaitTerminationSeconds(int awaitTerminationSeconds)voidsetCorePoolSize(int corePoolSize)voidsetKeepAlive(java.time.Duration keepAlive)voidsetMaxPoolSize(int maxPoolSize)voidsetQueueCapacity(int queueCapacity)voidsetThreadNamePrefix(java.lang.String threadNamePrefix)
-
Constructor Details
-
JobThreadPoolConfiguration
public JobThreadPoolConfiguration()
-
-
Method Details
-
getCorePoolSize
public int getCorePoolSize() -
setCorePoolSize
public void setCorePoolSize(int corePoolSize) -
getMaxPoolSize
public int getMaxPoolSize() -
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) -
getQueueCapacity
public int getQueueCapacity() -
setQueueCapacity
public void setQueueCapacity(int queueCapacity) -
getThreadNamePrefix
public java.lang.String getThreadNamePrefix() -
setThreadNamePrefix
public void setThreadNamePrefix(java.lang.String threadNamePrefix) -
isAllowCoreThreadTimeout
public boolean isAllowCoreThreadTimeout() -
setAllowCoreThreadTimeout
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout) -
getKeepAlive
public java.time.Duration getKeepAlive() -
setKeepAlive
public void setKeepAlive(java.time.Duration keepAlive) -
getAwaitTerminationSeconds
public int getAwaitTerminationSeconds() -
setAwaitTerminationSeconds
public void setAwaitTerminationSeconds(int awaitTerminationSeconds)
-