|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThreadPoolMonitoringProbe
Monitoring probe providing callbacks that may be invoked by Grizzly
ExtendedThreadPool implementations.
| Method Summary | |
|---|---|
void |
maxNumberOfThreadsReachedEvent(String threadPoolName,
int maxNumberOfThreads)
This event may be fired when the ExtendedThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool. |
void |
onTaskCompletedEvent(Runnable task)
This event may be fired when a dequeued task has completed processing. |
void |
onTaskDequeuedEvent(Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed. |
void |
onTaskQueuedEvent(Runnable task)
This event may be fired when a task has been queued for processing. |
void |
onTaskQueueOverflowEvent(String threadPoolName)
This event may be fired when the task queue of the ExtendedThreadPool
implementation has exceeded its configured size. |
void |
threadAllocatedEvent(String threadPoolName,
Thread thread)
This event may be fired when an ExtendedThreadPool implementation
allocates a new managed Thread. |
void |
threadReleasedEvent(String threadPoolName,
Thread thread)
This event may be fired when a thread will no longer be managed by the ExtendedThreadPool implementation. |
| Method Detail |
|---|
void threadAllocatedEvent(String threadPoolName,
Thread thread)
This event may be fired when an ExtendedThreadPool implementation
allocates a new managed Thread.
threadPoolName - the name of the ExtendedThreadPool being monitoredthread - the thread that has been allocated
void threadReleasedEvent(String threadPoolName,
Thread thread)
This event may be fired when a thread will no longer be managed by the
ExtendedThreadPool implementation.
threadPoolName - the name of the ExtendedThreadPool being monitoredthread - the thread that is no longer being managed by the
ExtendedThreadPool
void maxNumberOfThreadsReachedEvent(String threadPoolName,
int maxNumberOfThreads)
This event may be fired when the ExtendedThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool.
threadPoolName - the name of the ExtendedThreadPool being
monitoredmaxNumberOfThreads - the maximum number of threads allowed in the
ExtendedThreadPoolvoid onTaskQueuedEvent(Runnable task)
This event may be fired when a task has been queued for processing.
task - a unit of work to be processedvoid onTaskDequeuedEvent(Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed.
task - a unit of work that is about to be processed.void onTaskCompletedEvent(Runnable task)
This event may be fired when a dequeued task has completed processing.
task - the unit of work that has completed processingvoid onTaskQueueOverflowEvent(String threadPoolName)
This event may be fired when the task queue of the ExtendedThreadPool
implementation has exceeded its configured size.
threadPoolName - the name of the ExtendedThreadPool being
monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||