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 int
getAwaitTerminationSeconds()
int
getCorePoolSize()
java.time.Duration
getKeepAlive()
int
getMaxPoolSize()
int
getQueueCapacity()
java.lang.String
getThreadNamePrefix()
boolean
isAllowCoreThreadTimeout()
void
setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
void
setAwaitTerminationSeconds(int awaitTerminationSeconds)
void
setCorePoolSize(int corePoolSize)
void
setKeepAlive(java.time.Duration keepAlive)
void
setMaxPoolSize(int maxPoolSize)
void
setQueueCapacity(int queueCapacity)
void
setThreadNamePrefix(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)
-