|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPoolProfile
A profile which defines thread pool settings.
Method Summary | |
---|---|
java.lang.String |
getId()
Gets the id of this profile |
java.lang.Long |
getKeepAliveTime()
Gets the keep alive time for inactive threads |
java.lang.Integer |
getMaxPoolSize()
Gets the maximum pool size |
java.lang.Integer |
getMaxQueueSize()
Gets the maximum number of tasks in the work queue. |
java.lang.Integer |
getPoolSize()
Gets the core pool size (threads to keep minimum in pool) |
java.util.concurrent.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. |
java.util.concurrent.TimeUnit |
getTimeUnit()
Gets the time unit used for keep alive time |
java.lang.Boolean |
isDefaultProfile()
Whether this profile is the default profile (there can only be one). |
void |
setDefaultProfile(java.lang.Boolean defaultProfile)
Sets whether this profile is the default profile (there can only be one). |
void |
setKeepAliveTime(java.lang.Long keepAliveTime)
Sets the keep alive time for inactive threads |
void |
setMaxPoolSize(java.lang.Integer maxPoolSize)
Sets the maximum pool size |
void |
setMaxQueueSize(java.lang.Integer maxQueueSize)
Sets the maximum number of tasks in the work queue. |
void |
setPoolSize(java.lang.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(java.util.concurrent.TimeUnit timeUnit)
Sets the time unit used for keep alive time |
Method Detail |
---|
java.lang.String getId()
java.lang.Boolean isDefaultProfile()
void setDefaultProfile(java.lang.Boolean defaultProfile)
defaultProfile
- the optionjava.lang.Integer getPoolSize()
void setPoolSize(java.lang.Integer poolSize)
poolSize
- the pool sizejava.lang.Integer getMaxPoolSize()
void setMaxPoolSize(java.lang.Integer maxPoolSize)
maxPoolSize
- the maximum pool sizejava.lang.Long getKeepAliveTime()
void setKeepAliveTime(java.lang.Long keepAliveTime)
keepAliveTime
- the keep alive timejava.util.concurrent.TimeUnit getTimeUnit()
void setTimeUnit(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unitjava.lang.Integer getMaxQueueSize()
void setMaxQueueSize(java.lang.Integer maxQueueSize)
maxQueueSize
- the max queue sizeThreadPoolRejectedPolicy getRejectedPolicy()
java.util.concurrent.RejectedExecutionHandler getRejectedExecutionHandler()
void setRejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
rejectedPolicy
- the policy for the handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |