| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | |
| private final ThreadPoolProbe | |
| private final ThreadPoolInfo | |
| private final AtomicInteger | |
| private final AtomicLong | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | getCurrentAllocatedThreadCount()
Returns: the current number of threads maintained by this thread pool. |
| public int | getCurrentTaskCount()
Returns: the current number of tasks that have been queued for processing by this thread pool. |
| public String | |
| public int | |
| public String | |
| public int | getTotalAllocatedThreadCount()
Returns: the total number of threads that have been allocated over time by this thread pool. |
| public long | getTotalCompletedTasksCount()
Returns: the total number of tasks that have been completed by this thread pool. |
| public int | getTotalTaskQueueOverflowCount()
Returns: the number of times the task queue has reached it's upper limit. |
| public boolean | |
| protected void | onDeregister(GrizzlyJmxManager mom)
Implements abstract org. Method will be called right after this JmxObject is unregistered by the JMX manager. |
| protected void | onRegister(GrizzlyJmxManager mom, GmbalMBean bean)
Implements abstract org. Method will be called right after this JmxObject is registered by the JMX manager. |
| busyThreadsCount | back to summary |
|---|---|
| private final AtomicInteger busyThreadsCount | |
| probe | back to summary |
|---|---|
| private final ThreadPoolProbe probe | |
| threadPool | back to summary |
|---|---|
| private final ThreadPoolInfo threadPool | |
| totalAllocatedThreadCount | back to summary |
|---|---|
| private final AtomicInteger totalAllocatedThreadCount | |
| totalCompletedTasksCount | back to summary |
|---|---|
| private final AtomicLong totalCompletedTasksCount | |
| totalTaskQueueOverflowCount | back to summary |
|---|---|
| private final AtomicInteger totalTaskQueueOverflowCount | |
| ThreadPool | back to summary |
|---|---|
| public ThreadPool(ThreadPoolInfo threadPool) | |
| getBusyThreadCount | back to summary |
|---|---|
public int getBusyThreadCount()
| |
| getCorePoolSize | back to summary |
|---|---|
public int getCorePoolSize()
| |
| getCurrentAllocatedThreadCount | back to summary |
|---|---|
public int getCurrentAllocatedThreadCount()
| |
| getCurrentTaskCount | back to summary |
|---|---|
public int getCurrentTaskCount()
| |
| getJmxName | back to summary |
|---|---|
| public String getJmxName() Implements abstract org.
| |
| getMaxAllowedThreads | back to summary |
|---|---|
public int getMaxAllowedThreads()
| |
| getPoolType | back to summary |
|---|---|
public String getPoolType()
| |
| getTotalAllocatedThreadCount | back to summary |
|---|---|
public int getTotalAllocatedThreadCount()
| |
| getTotalCompletedTasksCount | back to summary |
|---|---|
public long getTotalCompletedTasksCount()
| |
| getTotalTaskQueueOverflowCount | back to summary |
|---|---|
public int getTotalTaskQueueOverflowCount()
| |
| isStarted | back to summary |
|---|---|
public boolean isStarted()
| |
| onDeregister | back to summary |
|---|---|
| protected void onDeregister(GrizzlyJmxManager mom) Implements abstract org. Doc from org. Method will be called right after this JmxObject is unregistered by the JMX manager.
| |
| onRegister | back to summary |
|---|---|
| protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean) Implements abstract org. Doc from org. Method will be called right after this JmxObject is registered by the JMX manager.
| |
| Access | Constructor and Description |
|---|---|
| private |
| JmxThreadPoolProbe | back to summary |
|---|---|
| private JmxThreadPoolProbe() | |
| decBusyThreadCount | back to summary |
|---|---|
| private void decBusyThreadCount() | |
| onTaskCancelEvent | back to summary |
|---|---|
| public void onTaskCancelEvent(ThreadPoolInfo threadPool, Runnable task) Overrides org. Implements org. Doc from org. This event may be fired when a dequeued task has been canceled. This event can occur during shutdownNow() invocation, where tasks are getting pulled out of thread pool queue and returned as the result of shutdownNow() method call.
| |
| onTaskCompleteEvent | back to summary |
|---|---|
| public void onTaskCompleteEvent(ThreadPoolInfo threadPool, Runnable task) Overrides org. Implements org. Doc from org. This event may be fired when a dequeued task has completed processing.
| |
| onTaskDequeueEvent | back to summary |
|---|---|
| public void onTaskDequeueEvent(ThreadPoolInfo threadPool, Runnable task) Overrides org. Implements org. Doc from org. This event may be fired when a task has been pulled from the queue and is about to be processed.
| |
| onTaskQueueOverflowEvent | back to summary |
|---|---|
| public void onTaskQueueOverflowEvent(ThreadPoolInfo threadPool) Overrides org. Implements org. Doc from org.
This event may be fired when the task queue of the
| |
| onThreadAllocateEvent | back to summary |
|---|---|
| public void onThreadAllocateEvent(ThreadPoolInfo threadPool, Thread thread) Overrides org. Implements org. Doc from org.
This event may be fired when an
| |