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, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic static ThreadPoolAdmin create()
public java.lang.String getName()
getName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic int getThreadMax()
getThreadMax in interface ThreadPoolMXBeanpublic int getThreadExecutorMax()
getThreadExecutorMax in interface ThreadPoolMXBeanpublic int getThreadIdleMin()
getThreadIdleMin in interface ThreadPoolMXBeanpublic int getThreadIdleMax()
getThreadIdleMax in interface ThreadPoolMXBeanpublic int getThreadPriorityMin()
getThreadPriorityMin in interface ThreadPoolMXBeanpublic int getThreadCount()
getThreadCount in interface ThreadPoolMXBeanpublic int getThreadActiveCount()
getThreadActiveCount in interface ThreadPoolMXBeanpublic int getThreadStartingCount()
getThreadStartingCount in interface ThreadPoolMXBeanpublic int getThreadIdleCount()
getThreadIdleCount in interface ThreadPoolMXBeanpublic int getThreadWaitCount()
getThreadWaitCount in interface ThreadPoolMXBeanpublic long getThreadCreateCountTotal()
getThreadCreateCountTotal in interface ThreadPoolMXBeanpublic long getThreadOverflowCountTotal()
getThreadOverflowCountTotal in interface ThreadPoolMXBeanpublic int getThreadPriorityQueueSize()
getThreadPriorityQueueSize in interface ThreadPoolMXBeanpublic int getThreadTaskQueueSize()
getThreadTaskQueueSize in interface ThreadPoolMXBeanpublic void register()
public void unregister()