|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
org.apache.camel.model.ThreadPoolProfileDefinition
public class ThreadPoolProfileDefinition
Represents an XML <threadPoolProfile/> element
| Constructor Summary | |
|---|---|
ThreadPoolProfileDefinition()
|
|
ThreadPoolProfileDefinition(ThreadPoolProfile threadPoolProfile)
|
|
| Method Summary | |
|---|---|
Long |
getKeepAliveTime()
Gets the keep alive time for inactive threads |
Integer |
getMaxPoolSize()
Gets the maximum pool size |
Integer |
getMaxQueueSize()
Gets the maximum number of tasks in the work queue. |
Integer |
getPoolSize()
Gets the core pool size (threads to keep minimum in pool) |
RejectedExecutionHandler |
getRejectedExecutionHandler()
Gets the handler for tasks which cannot be executed by the thread pool. |
ThreadPoolRejectedPolicy |
getRejectedPolicy()
Gets the handler for tasks which cannot be executed by the thread pool. |
TimeUnit |
getTimeUnit()
Gets the time unit used for keep alive time |
Boolean |
isDefaultProfile()
Whether this profile is the default profile (there can only be one). |
ThreadPoolProfileDefinition |
keepAliveTime(long keepAliveTime)
|
ThreadPoolProfileDefinition |
maxPoolSize(int maxPoolSize)
|
ThreadPoolProfileDefinition |
maxQueueSize(int maxQueueSize)
|
ThreadPoolProfileDefinition |
poolSize(int poolSize)
|
ThreadPoolProfileDefinition |
rejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
|
void |
setDefaultProfile(Boolean defaultProfile)
Sets whether this profile is the default profile (there can only be one). |
void |
setKeepAliveTime(Long keepAliveTime)
Sets the keep alive time for inactive threads |
void |
setMaxPoolSize(Integer maxPoolSize)
Sets the maximum pool size |
void |
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(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 |
ThreadPoolProfileDefinition |
timeUnit(TimeUnit timeUnit)
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
|---|
description, getDescription, getId, getShortName, hasCustomIdAssigned, id, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.spi.ThreadPoolProfile |
|---|
getId |
| Constructor Detail |
|---|
public ThreadPoolProfileDefinition()
public ThreadPoolProfileDefinition(ThreadPoolProfile threadPoolProfile)
| Method Detail |
|---|
public ThreadPoolProfileDefinition poolSize(int poolSize)
public ThreadPoolProfileDefinition maxPoolSize(int maxPoolSize)
public ThreadPoolProfileDefinition keepAliveTime(long keepAliveTime)
public ThreadPoolProfileDefinition timeUnit(TimeUnit timeUnit)
public ThreadPoolProfileDefinition maxQueueSize(int maxQueueSize)
public ThreadPoolProfileDefinition rejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
public Boolean isDefaultProfile()
ThreadPoolProfile
isDefaultProfile in interface ThreadPoolProfilepublic void setDefaultProfile(Boolean defaultProfile)
ThreadPoolProfile
setDefaultProfile in interface ThreadPoolProfiledefaultProfile - the optionpublic Integer getPoolSize()
ThreadPoolProfile
getPoolSize in interface ThreadPoolProfilepublic void setPoolSize(Integer poolSize)
ThreadPoolProfile
setPoolSize in interface ThreadPoolProfilepoolSize - the pool sizepublic Integer getMaxPoolSize()
ThreadPoolProfile
getMaxPoolSize in interface ThreadPoolProfilepublic void setMaxPoolSize(Integer maxPoolSize)
ThreadPoolProfile
setMaxPoolSize in interface ThreadPoolProfilemaxPoolSize - the maximum pool sizepublic Long getKeepAliveTime()
ThreadPoolProfile
getKeepAliveTime in interface ThreadPoolProfilepublic void setKeepAliveTime(Long keepAliveTime)
ThreadPoolProfile
setKeepAliveTime in interface ThreadPoolProfilekeepAliveTime - the keep alive timepublic TimeUnit getTimeUnit()
ThreadPoolProfile
getTimeUnit in interface ThreadPoolProfilepublic void setTimeUnit(TimeUnit timeUnit)
ThreadPoolProfile
setTimeUnit in interface ThreadPoolProfiletimeUnit - the time unitpublic Integer getMaxQueueSize()
ThreadPoolProfile
getMaxQueueSize in interface ThreadPoolProfilepublic void setMaxQueueSize(Integer maxQueueSize)
ThreadPoolProfile
setMaxQueueSize in interface ThreadPoolProfilemaxQueueSize - the max queue sizepublic ThreadPoolRejectedPolicy getRejectedPolicy()
ThreadPoolProfile
getRejectedPolicy in interface ThreadPoolProfilepublic RejectedExecutionHandler getRejectedExecutionHandler()
ThreadPoolProfile
getRejectedExecutionHandler in interface ThreadPoolProfilepublic void setRejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
ThreadPoolProfile
setRejectedPolicy in interface ThreadPoolProfilerejectedPolicy - the policy for the handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||