|
||||||||||
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 | |
---|---|
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 |
Method Detail |
---|
String getId()
Boolean isDefaultProfile()
void setDefaultProfile(Boolean defaultProfile)
defaultProfile
- the optionInteger getPoolSize()
void setPoolSize(Integer poolSize)
poolSize
- the pool sizeInteger getMaxPoolSize()
void setMaxPoolSize(Integer maxPoolSize)
maxPoolSize
- the maximum pool sizeLong getKeepAliveTime()
void setKeepAliveTime(Long keepAliveTime)
keepAliveTime
- the keep alive timeTimeUnit getTimeUnit()
void setTimeUnit(TimeUnit timeUnit)
timeUnit
- the time unitInteger getMaxQueueSize()
void setMaxQueueSize(Integer maxQueueSize)
maxQueueSize
- the max queue sizeThreadPoolRejectedPolicy getRejectedPolicy()
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 |