ThreadPoolInfo implementations.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ThreadPoolProbe.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | onMaxNumberOfThreadsEvent(ThreadPoolInfo
the threadPool, int ThreadPoolInfo being monitoredthe maximum number of threads allowed in the maxNumberOfThreads)ThreadPoolInfo
This event may be fired when the |
| public void | onTaskCancelEvent(ThreadPoolInfo
the threadPool, Runnable ThreadPoolInfo being monitoreda unit of work that has been canceled task)This event may be fired when a dequeued task has been canceled. |
| public void | onTaskCompleteEvent(ThreadPoolInfo
the threadPool, Runnable ThreadPoolInfo being monitoredthe unit of work that has completed processing task)This event may be fired when a dequeued task has completed processing. |
| public void | onTaskDequeueEvent(ThreadPoolInfo
the threadPool, Runnable ThreadPoolInfo being monitoreda unit of work that is about to be processed. task)This event may be fired when a task has been pulled from the queue and is about to be processed. |
| public void | onTaskQueueEvent(ThreadPoolInfo
the threadPool, Runnable ThreadPoolInfo being monitoreda unit of work to be processed task)This event may be fired when a task has been queued for processing. |
| public void | onTaskQueueOverflowEvent(ThreadPoolInfo
the threadPool)ThreadPoolInfo being monitored
This event may be fired when the task queue of the |
| public void | onThreadAllocateEvent(ThreadPoolInfo
the threadPool, Thread ThreadPoolInfo being monitoredthe thread that has been allocated thread)
This event may be fired when an |
| public void | onThreadPoolStartEvent(ThreadPoolInfo
the threadPool)ThreadPoolInfo being monitored
This event may be fired when an |
| public void | onThreadPoolStopEvent(ThreadPoolInfo
the threadPool)ThreadPoolInfo being monitored
This event may be fired when an |
| public void | onThreadReleaseEvent(ThreadPoolInfo
the threadPool, Thread ThreadPoolInfo being monitoredthe thread that is no longer being managed by the thread)ThreadPoolInfo
This event may be fired when a thread will no longer be managed by the |
| onMaxNumberOfThreadsEvent | back to summary |
|---|---|
| public void onMaxNumberOfThreadsEvent(ThreadPoolInfo threadPool, int maxNumberOfThreads)
This event may be fired when the
| |
| onTaskCancelEvent | back to summary |
|---|---|
| public void onTaskCancelEvent(ThreadPoolInfo threadPool, Runnable task) 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) This event may be fired when a dequeued task has completed processing.
| |
| onTaskDequeueEvent | back to summary |
|---|---|
| public void onTaskDequeueEvent(ThreadPoolInfo threadPool, Runnable task) This event may be fired when a task has been pulled from the queue and is about to be processed.
| |
| onTaskQueueEvent | back to summary |
|---|---|
| public void onTaskQueueEvent(ThreadPoolInfo threadPool, Runnable task) This event may be fired when a task has been queued for processing.
| |
| onTaskQueueOverflowEvent | back to summary |
|---|---|
| public void onTaskQueueOverflowEvent(ThreadPoolInfo threadPool)
This event may be fired when the task queue of the
| |
| onThreadAllocateEvent | back to summary |
|---|---|
| public void onThreadAllocateEvent(ThreadPoolInfo threadPool, Thread thread)
This event may be fired when an
| |
| onThreadPoolStartEvent | back to summary |
|---|---|
| public void onThreadPoolStartEvent(ThreadPoolInfo threadPool)
This event may be fired when an
| |
| onThreadPoolStopEvent | back to summary |
|---|---|
| public void onThreadPoolStopEvent(ThreadPoolInfo threadPool)
This event may be fired when an
| |
| onThreadReleaseEvent | back to summary |
|---|---|
| public void onThreadReleaseEvent(ThreadPoolInfo threadPool, Thread thread)
This event may be fired when a thread will no longer be managed by the
| |
ThreadPoolProbe adapter that provides no-op implementations for all interface methods allowing easy extension
by the developer.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onMaxNumberOfThreadsEvent(ThreadPoolInfo threadPool, int maxNumberOfThreads)
Implements org.
This event may be fired when the |
| public void | onTaskCancelEvent(ThreadPoolInfo threadPool, Runnable task)
Implements org. This event may be fired when a dequeued task has been canceled. |
| public void | onTaskCompleteEvent(ThreadPoolInfo threadPool, Runnable task)
Implements org. This event may be fired when a dequeued task has completed processing. |
| public void | onTaskDequeueEvent(ThreadPoolInfo threadPool, Runnable task)
Implements org. This event may be fired when a task has been pulled from the queue and is about to be processed. |
| public void | onTaskQueueEvent(ThreadPoolInfo threadPool, Runnable task)
Implements org. This event may be fired when a task has been queued for processing. |
| public void | onTaskQueueOverflowEvent(ThreadPoolInfo threadPool)
Implements org.
This event may be fired when the task queue of the |
| public void | onThreadAllocateEvent(ThreadPoolInfo threadPool, Thread thread)
Implements org.
This event may be fired when an |
| public void | onThreadPoolStartEvent(ThreadPoolInfo threadPool)
Implements org.
This event may be fired when an |
| public void | onThreadPoolStopEvent(ThreadPoolInfo threadPool)
Implements org.
This event may be fired when an |
| public void | onThreadReleaseEvent(ThreadPoolInfo threadPool, Thread thread)
Implements org.
This event may be fired when a thread will no longer be managed by the |
| Adapter | back to summary |
|---|---|
| public Adapter() | |
| onMaxNumberOfThreadsEvent | back to summary |
|---|---|
| public void onMaxNumberOfThreadsEvent(ThreadPoolInfo threadPool, int maxNumberOfThreads) Implements org. Doc from org.
This event may be fired when the
| |
| onTaskCancelEvent | back to summary |
|---|---|
| public void onTaskCancelEvent(ThreadPoolInfo threadPool, Runnable task) 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) 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) 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.
| |
| onTaskQueueEvent | back to summary |
|---|---|
| public void onTaskQueueEvent(ThreadPoolInfo threadPool, Runnable task) Implements org. Doc from org. This event may be fired when a task has been queued for processing.
| |
| onTaskQueueOverflowEvent | back to summary |
|---|---|
| public void onTaskQueueOverflowEvent(ThreadPoolInfo threadPool) 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) Implements org. Doc from org.
This event may be fired when an
| |
| onThreadPoolStartEvent | back to summary |
|---|---|
| public void onThreadPoolStartEvent(ThreadPoolInfo threadPool) Implements org. Doc from org.
This event may be fired when an
| |
| onThreadPoolStopEvent | back to summary |
|---|---|
| public void onThreadPoolStopEvent(ThreadPoolInfo threadPool) Implements org. Doc from org.
This event may be fired when an
| |
| onThreadReleaseEvent | back to summary |
|---|---|
| public void onThreadReleaseEvent(ThreadPoolInfo threadPool, Thread thread) Implements org. Doc from org.
This event may be fired when a thread will no longer be managed by the
| |