Package org.apache.camel.model
Class ThreadPoolProfileDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<ThreadPoolProfileDefinition>
org.apache.camel.model.ThreadPoolProfileDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,org.apache.camel.NamedNode
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
@Metadata(label="configuration")
public class ThreadPoolProfileDefinition
extends OptionalIdentifiedDefinition<ThreadPoolProfileDefinition>
To configure thread pools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowCoreThreadTimeOut
(boolean allowCoreThreadTimeOut) allowCoreThreadTimeOut
(String allowCoreThreadTimeOut) getLabel()
keepAliveTime
(long keepAliveTime) keepAliveTime
(String keepAliveTime) maxPoolSize
(int maxPoolSize) maxPoolSize
(String maxPoolSize) maxQueueSize
(int maxQueueSize) maxQueueSize
(String maxQueueSize) poolSize
(int poolSize) rejectedPolicy
(String rejectedPolicy) rejectedPolicy
(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) void
setAllowCoreThreadTimeOut
(String allowCoreThreadTimeOut) Whether idle core threads is allowed to timeout and therefore can shrink the pool size below the core pool sizevoid
setDefaultProfile
(String defaultProfile) Whether this profile is the default thread pool profilevoid
setKeepAliveTime
(String keepAliveTime) Sets the keep alive time for idle threads in the poolvoid
setMaxPoolSize
(String maxPoolSize) Sets the maximum pool sizevoid
setMaxQueueSize
(String maxQueueSize) Sets the maximum number of tasks in the work queue.void
setPoolSize
(String poolSize) Sets the core pool sizevoid
setRejectedPolicy
(String rejectedPolicy) Sets the handler for tasks which cannot be executed by the thread pool.void
setTimeUnit
(String timeUnit) Sets the time unit to use for keep alive time By default SECONDS is used.Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getParent, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
-
Constructor Details
-
ThreadPoolProfileDefinition
public ThreadPoolProfileDefinition()
-
-
Method Details
-
getShortName
-
getLabel
-
poolSize
-
poolSize
-
maxPoolSize
-
maxPoolSize
-
keepAliveTime
-
keepAliveTime
-
timeUnit
-
timeUnit
-
maxQueueSize
-
maxQueueSize
-
rejectedPolicy
public ThreadPoolProfileDefinition rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) -
rejectedPolicy
-
allowCoreThreadTimeOut
-
allowCoreThreadTimeOut
-
getDefaultProfile
-
setDefaultProfile
Whether this profile is the default thread pool profile -
getPoolSize
-
setPoolSize
Sets the core pool size -
getMaxPoolSize
-
setMaxPoolSize
Sets the maximum pool size -
getKeepAliveTime
-
setKeepAliveTime
Sets the keep alive time for idle threads in the pool -
getMaxQueueSize
-
setMaxQueueSize
Sets the maximum number of tasks in the work queue. Use -1 or Integer.MAX_VALUE for an unbounded queue -
getAllowCoreThreadTimeOut
-
setAllowCoreThreadTimeOut
Whether idle core threads is allowed to timeout and therefore can shrink the pool size below the core pool size Is by default true -
getTimeUnit
-
setTimeUnit
Sets the time unit to use for keep alive time By default SECONDS is used. -
getRejectedPolicy
-
setRejectedPolicy
Sets the handler for tasks which cannot be executed by the thread pool.
-