@Metadata(label="configuration") public class ThreadPoolProfileDefinition extends OptionalIdentifiedDefinition<ThreadPoolProfileDefinition>
Constructor and Description |
---|
ThreadPoolProfileDefinition() |
Modifier and Type | Method and Description |
---|---|
ThreadPoolProfileDefinition |
allowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) |
ThreadPoolProfileDefinition |
allowCoreThreadTimeOut(String allowCoreThreadTimeOut) |
String |
getAllowCoreThreadTimeOut() |
String |
getDefaultProfile() |
String |
getKeepAliveTime() |
String |
getLabel() |
String |
getMaxPoolSize() |
String |
getMaxQueueSize() |
String |
getPoolSize() |
String |
getRejectedPolicy() |
String |
getShortName() |
String |
getTimeUnit() |
ThreadPoolProfileDefinition |
keepAliveTime(long keepAliveTime) |
ThreadPoolProfileDefinition |
keepAliveTime(String keepAliveTime) |
ThreadPoolProfileDefinition |
maxPoolSize(int maxPoolSize) |
ThreadPoolProfileDefinition |
maxPoolSize(String maxPoolSize) |
ThreadPoolProfileDefinition |
maxQueueSize(int maxQueueSize) |
ThreadPoolProfileDefinition |
maxQueueSize(String maxQueueSize) |
ThreadPoolProfileDefinition |
poolSize(int poolSize) |
ThreadPoolProfileDefinition |
poolSize(String poolSize) |
ThreadPoolProfileDefinition |
rejectedPolicy(String rejectedPolicy) |
ThreadPoolProfileDefinition |
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 size
Is by default true
|
void |
setDefaultProfile(String defaultProfile)
Whether this profile is the default thread pool profile
|
void |
setKeepAliveTime(String keepAliveTime)
Sets the keep alive time for idle threads in the pool
|
void |
setMaxPoolSize(String maxPoolSize)
Sets the maximum pool size
|
void |
setMaxQueueSize(String maxQueueSize)
Sets the maximum number of tasks in the work queue.
|
void |
setPoolSize(String poolSize)
Sets the core pool size
|
void |
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.
|
ThreadPoolProfileDefinition |
timeUnit(String timeUnit) |
ThreadPoolProfileDefinition |
timeUnit(TimeUnit timeUnit) |
description, description, getCustomId, getDescription, getDescriptionText, getId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public String getShortName()
public String getLabel()
public ThreadPoolProfileDefinition poolSize(int poolSize)
public ThreadPoolProfileDefinition poolSize(String poolSize)
public ThreadPoolProfileDefinition maxPoolSize(int maxPoolSize)
public ThreadPoolProfileDefinition maxPoolSize(String maxPoolSize)
public ThreadPoolProfileDefinition keepAliveTime(long keepAliveTime)
public ThreadPoolProfileDefinition keepAliveTime(String keepAliveTime)
public ThreadPoolProfileDefinition timeUnit(TimeUnit timeUnit)
public ThreadPoolProfileDefinition timeUnit(String timeUnit)
public ThreadPoolProfileDefinition maxQueueSize(int maxQueueSize)
public ThreadPoolProfileDefinition maxQueueSize(String maxQueueSize)
public ThreadPoolProfileDefinition rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
public ThreadPoolProfileDefinition rejectedPolicy(String rejectedPolicy)
public ThreadPoolProfileDefinition allowCoreThreadTimeOut(boolean allowCoreThreadTimeOut)
public ThreadPoolProfileDefinition allowCoreThreadTimeOut(String allowCoreThreadTimeOut)
public String getDefaultProfile()
public void setDefaultProfile(String defaultProfile)
public String getPoolSize()
public void setPoolSize(String poolSize)
public String getMaxPoolSize()
public void setMaxPoolSize(String maxPoolSize)
public String getKeepAliveTime()
public void setKeepAliveTime(String keepAliveTime)
public String getMaxQueueSize()
public void setMaxQueueSize(String maxQueueSize)
public String getAllowCoreThreadTimeOut()
public void setAllowCoreThreadTimeOut(String allowCoreThreadTimeOut)
public String getTimeUnit()
public void setTimeUnit(String timeUnit)
public String getRejectedPolicy()
public void setRejectedPolicy(String rejectedPolicy)
Apache Camel