Package org.apache.camel.main
Class ThreadPoolProfileConfigurationProperties
- java.lang.Object
-
- org.apache.camel.main.ThreadPoolProfileConfigurationProperties
-
@Configurer(bootstrap=true) public class ThreadPoolProfileConfigurationProperties extends Object
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolProfileConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getAllowCoreThreadTimeOut()
String
getId()
Long
getKeepAliveTime()
Integer
getMaxPoolSize()
Integer
getMaxQueueSize()
Integer
getPoolSize()
org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy
getRejectedPolicy()
TimeUnit
getTimeUnit()
void
setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
Sets whether to allow core threads to timeoutvoid
setId(String id)
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
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
Sets the id of this thread pool
-
getPoolSize
public Integer getPoolSize()
-
setPoolSize
public void setPoolSize(Integer poolSize)
Sets the core pool size (threads to keep minimum in pool)
-
getMaxPoolSize
public Integer getMaxPoolSize()
-
setMaxPoolSize
public void setMaxPoolSize(Integer maxPoolSize)
Sets the maximum pool size
-
getKeepAliveTime
public Long getKeepAliveTime()
-
setKeepAliveTime
public void setKeepAliveTime(Long keepAliveTime)
Sets the keep alive time for inactive threads
-
getTimeUnit
public TimeUnit getTimeUnit()
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
Sets the time unit used for keep alive time
-
getMaxQueueSize
public Integer getMaxQueueSize()
-
setMaxQueueSize
public void setMaxQueueSize(Integer maxQueueSize)
Sets the maximum number of tasks in the work queue. Use -1 or an unbounded queue
-
getAllowCoreThreadTimeOut
public Boolean getAllowCoreThreadTimeOut()
-
setAllowCoreThreadTimeOut
public void setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
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.
-
-