Class AsyncProperties
java.lang.Object
com.flowable.spring.boot.properties.AsyncProperties
@ConfigurationProperties(prefix="flowable.async")
public class AsyncProperties
extends java.lang.Object
Properties for configuring the
TaskExecutor that handles the @Async logic.- See Also:
- About ExecutorService(s) blog
-
Constructor Summary
Constructors Constructor Description AsyncProperties() -
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
-
AsyncProperties
public AsyncProperties()
-
-
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() -
isAllowCoreThreadTimeout
public boolean isAllowCoreThreadTimeout() -
setAllowCoreThreadTimeout
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout) -
getKeepAlive
public java.time.Duration getKeepAlive() -
setKeepAlive
public void setKeepAlive(java.time.Duration keepAlive) -
setThreadNamePrefix
public void setThreadNamePrefix(java.lang.String threadNamePrefix) -
getAwaitTerminationSeconds
public int getAwaitTerminationSeconds() -
setAwaitTerminationSeconds
public void setAwaitTerminationSeconds(int awaitTerminationSeconds)
-