Package org.apache.camel.main
Class ThreadPoolProfileConfigurationProperties
java.lang.Object
org.apache.camel.main.ThreadPoolProfileConfigurationProperties
@Configurer(bootstrap=true,
extended=true)
public class ThreadPoolProfileConfigurationProperties
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()org.apache.camel.util.concurrent.ThreadPoolRejectedPolicyvoidsetAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut) Sets whether to allow core threads to timeoutvoidSets the id of this thread poolvoidsetKeepAliveTime(Long keepAliveTime) Sets the keep alive time for inactive threadsvoidsetMaxPoolSize(Integer maxPoolSize) Sets the maximum pool sizevoidsetMaxQueueSize(Integer maxQueueSize) Sets the maximum number of tasks in the work queue.voidsetPoolSize(Integer poolSize) Sets the core pool size (threads to keep minimum in pool)voidsetRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) Sets the handler for tasks which cannot be executed by the thread pool.voidsetTimeUnit(TimeUnit timeUnit) Sets the time unit used for keep alive time
-
Constructor Details
-
ThreadPoolProfileConfigurationProperties
public ThreadPoolProfileConfigurationProperties()
-
-
Method Details
-
getId
-
setId
Sets the id of this thread pool -
getPoolSize
-
setPoolSize
Sets the core pool size (threads to keep minimum in pool) -
getMaxPoolSize
-
setMaxPoolSize
Sets the maximum pool size -
getKeepAliveTime
-
setKeepAliveTime
Sets the keep alive time for inactive threads -
getTimeUnit
-
setTimeUnit
Sets the time unit used for keep alive time -
getMaxQueueSize
-
setMaxQueueSize
Sets the maximum number of tasks in the work queue. Use -1 or an unbounded queue -
getAllowCoreThreadTimeOut
-
setAllowCoreThreadTimeOut
Sets whether to allow core threads to timeout -
getRejectedPolicy
public org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy getRejectedPolicy() -
setRejectedPolicy
public void setRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) Sets the handler for tasks which cannot be executed by the thread pool.
-