|
||||||||||
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, getDescriptionText, 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 ThreadPoolProfile
public void setDefaultProfile(Boolean defaultProfile)
ThreadPoolProfile
setDefaultProfile
in interface ThreadPoolProfile
defaultProfile
- the optionpublic Integer getPoolSize()
ThreadPoolProfile
getPoolSize
in interface ThreadPoolProfile
public void setPoolSize(Integer poolSize)
ThreadPoolProfile
setPoolSize
in interface ThreadPoolProfile
poolSize
- the pool sizepublic Integer getMaxPoolSize()
ThreadPoolProfile
getMaxPoolSize
in interface ThreadPoolProfile
public void setMaxPoolSize(Integer maxPoolSize)
ThreadPoolProfile
setMaxPoolSize
in interface ThreadPoolProfile
maxPoolSize
- the maximum pool sizepublic Long getKeepAliveTime()
ThreadPoolProfile
getKeepAliveTime
in interface ThreadPoolProfile
public void setKeepAliveTime(Long keepAliveTime)
ThreadPoolProfile
setKeepAliveTime
in interface ThreadPoolProfile
keepAliveTime
- the keep alive timepublic TimeUnit getTimeUnit()
ThreadPoolProfile
getTimeUnit
in interface ThreadPoolProfile
public void setTimeUnit(TimeUnit timeUnit)
ThreadPoolProfile
setTimeUnit
in interface ThreadPoolProfile
timeUnit
- the time unitpublic Integer getMaxQueueSize()
ThreadPoolProfile
getMaxQueueSize
in interface ThreadPoolProfile
public void setMaxQueueSize(Integer maxQueueSize)
ThreadPoolProfile
setMaxQueueSize
in interface ThreadPoolProfile
maxQueueSize
- the max queue sizepublic ThreadPoolRejectedPolicy getRejectedPolicy()
ThreadPoolProfile
getRejectedPolicy
in interface ThreadPoolProfile
public RejectedExecutionHandler getRejectedExecutionHandler()
ThreadPoolProfile
getRejectedExecutionHandler
in interface ThreadPoolProfile
public void setRejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
ThreadPoolProfile
setRejectedPolicy
in interface ThreadPoolProfile
rejectedPolicy
- the policy for the handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |