public class ThreadPoolAdmin extends AbstractManagedObject implements ThreadPoolMXBean
Modifier and Type | Method and Description |
---|---|
static ThreadPoolAdmin |
create()
The registration needs to be controlled externally to make
the timing work correctly.
|
java.lang.String |
getName()
The thread pool is unique so it doesn't have a name.
|
int |
getThreadActiveCount()
Returns the current number of active threads.
|
int |
getThreadCount()
Returns the total number of threads.
|
long |
getThreadCreateCountTotal()
Returns the current number of starting threads.
|
int |
getThreadExecutorMax()
Returns the maximum number of executor threads.
|
int |
getThreadIdleCount()
Returns the current number of idle threads.
|
int |
getThreadIdleMax()
Returns the maximum number of idle threads.
|
int |
getThreadIdleMin()
Returns the minimum number of idle threads.
|
int |
getThreadMax()
Returns the maximum number of threads.
|
long |
getThreadOverflowCountTotal()
Returns the current number of overflow threads.
|
int |
getThreadPriorityMin()
Returns the minimum number of saved priority threads.
|
int |
getThreadPriorityQueueSize()
Returns the thread priority queue size
|
int |
getThreadStartingCount()
Returns the current number of starting threads.
|
int |
getThreadTaskQueueSize()
Returns the thread task queue size
|
int |
getThreadWaitCount()
Returns the current number of waiting threads.
|
void |
register() |
void |
unregister() |
addObjectNameProperties, getObjectName, getType, registerSelf, toString, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public static ThreadPoolAdmin create()
public java.lang.String getName()
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public int getThreadMax()
getThreadMax
in interface ThreadPoolMXBean
public int getThreadExecutorMax()
getThreadExecutorMax
in interface ThreadPoolMXBean
public int getThreadIdleMin()
getThreadIdleMin
in interface ThreadPoolMXBean
public int getThreadIdleMax()
getThreadIdleMax
in interface ThreadPoolMXBean
public int getThreadPriorityMin()
getThreadPriorityMin
in interface ThreadPoolMXBean
public int getThreadCount()
getThreadCount
in interface ThreadPoolMXBean
public int getThreadActiveCount()
getThreadActiveCount
in interface ThreadPoolMXBean
public int getThreadStartingCount()
getThreadStartingCount
in interface ThreadPoolMXBean
public int getThreadIdleCount()
getThreadIdleCount
in interface ThreadPoolMXBean
public int getThreadWaitCount()
getThreadWaitCount
in interface ThreadPoolMXBean
public long getThreadCreateCountTotal()
getThreadCreateCountTotal
in interface ThreadPoolMXBean
public long getThreadOverflowCountTotal()
getThreadOverflowCountTotal
in interface ThreadPoolMXBean
public int getThreadPriorityQueueSize()
getThreadPriorityQueueSize
in interface ThreadPoolMXBean
public int getThreadTaskQueueSize()
getThreadTaskQueueSize
in interface ThreadPoolMXBean
public void register()
public void unregister()