|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Management interface for the thread pool.
Method Summary | |
BlockingMode |
getBlockingMode()
|
long |
getKeepAliveTime()
Get the keep alive time |
int |
getMaximumQueueSize()
Get the maximum queue size |
int |
getQueueSize()
Get the current queue size |
String |
getThreadGroupName()
Retrieve the thread group name |
void |
setBlockingMode(BlockingMode mode)
Set the behavior of the pool when a task is added and the queue is full. |
void |
setKeepAliveTime(long time)
Set the keep alive time |
void |
setMaximumQueueSize(int size)
Set the maximum queue size |
void |
setThreadGroupName(String threadGroupName)
Set the thread group name |
Methods inherited from interface org.jboss.util.threadpool.ThreadPoolMBean |
getInstance, getMaximumPoolSize, getMinimumPoolSize, getName, getPoolNumber, setMaximumPoolSize, setMinimumPoolSize, setName, stop |
Method Detail |
public int getQueueSize()
public int getMaximumQueueSize()
public void setMaximumQueueSize(int size)
size
- the new maximum queue sizepublic BlockingMode getBlockingMode()
public void setBlockingMode(BlockingMode mode)
mode
- one of run, wait, discard, discardOldest or abort without
regard to case.public String getThreadGroupName()
public void setThreadGroupName(String threadGroupName)
threadGroupName
- - the thread group namepublic long getKeepAliveTime()
public void setKeepAliveTime(long time)
time
- the keep alive time
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |