Package org.apache.camel.main
Class ThreadPoolProfileConfigurationProperties
java.lang.Object
org.apache.camel.main.ThreadPoolProfileConfigurationProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy
void
setAllowCoreThreadTimeOut
(Boolean allowCoreThreadTimeOut) Sets whether to allow core threads to timeoutvoid
Sets the id of this thread poolvoid
setKeepAliveTime
(Long keepAliveTime) Sets the keep alive time for inactive threadsvoid
setMaxPoolSize
(Integer maxPoolSize) Sets the maximum pool sizevoid
setMaxQueueSize
(Integer maxQueueSize) Sets the maximum number of tasks in the work queue.void
setPoolSize
(Integer poolSize) Sets the core pool size (threads to keep minimum in pool)void
setRejectedPolicy
(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) Sets the handler for tasks which cannot be executed by the thread pool.void
setTimeUnit
(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.
-