|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ThreadPoolProfileSupport
public class ThreadPoolProfileSupport
| Constructor Summary | |
|---|---|
ThreadPoolProfileSupport(String id)
|
|
| Method Summary | |
|---|---|
String |
getId()
Gets the id of this profile |
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). |
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 |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolProfileSupport(String id)
| Method Detail |
|---|
public String getId()
ThreadPoolProfile
getId in interface ThreadPoolProfilepublic 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 handlerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||