|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThreadPoolProbe
Monitoring probe providing callbacks that may be invoked by Grizzly
AbstractThreadPool implementations.
| Method Summary | |
|---|---|
void |
onMaxNumberOfThreadsEvent(AbstractThreadPool threadPool,
int maxNumberOfThreads)
This event may be fired when the AbstractThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool. |
void |
onTaskCompleteEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a dequeued task has completed processing. |
void |
onTaskDequeueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed. |
void |
onTaskQueueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been queued for processing. |
void |
onTaskQueueOverflowEvent(AbstractThreadPool threadPool)
This event may be fired when the task queue of the AbstractThreadPool
implementation has exceeded its configured size. |
void |
onThreadAllocateEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when an AbstractThreadPool implementation
allocates a new managed Thread. |
void |
onThreadPoolStartEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
starts running. |
void |
onThreadPoolStopEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
stops. |
void |
onThreadReleaseEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when a thread will no longer be managed by the AbstractThreadPool implementation. |
| Method Detail |
|---|
void onThreadPoolStartEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
starts running.
threadPool - the AbstractThreadPool being monitoredvoid onThreadPoolStopEvent(AbstractThreadPool threadPool)
This event may be fired when an AbstractThreadPool implementation
stops.
threadPool - the AbstractThreadPool being monitored
void onThreadAllocateEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when an AbstractThreadPool implementation
allocates a new managed Thread.
threadPool - the AbstractThreadPool being monitoredthread - the thread that has been allocated
void onThreadReleaseEvent(AbstractThreadPool threadPool,
java.lang.Thread thread)
This event may be fired when a thread will no longer be managed by the
AbstractThreadPool implementation.
threadPool - the AbstractThreadPool being monitoredthread - the thread that is no longer being managed by the
AbstractThreadPool
void onMaxNumberOfThreadsEvent(AbstractThreadPool threadPool,
int maxNumberOfThreads)
This event may be fired when the AbstractThreadPool implementation
has allocated and is managing a number of threads equal to the maximum limit
of the pool.
threadPool - the AbstractThreadPool being monitoredmaxNumberOfThreads - the maximum number of threads allowed in the
AbstractThreadPool
void onTaskQueueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been queued for processing.
threadPool - the AbstractThreadPool being monitoredtask - a unit of work to be processed
void onTaskDequeueEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a task has been pulled from the queue and is about to be processed.
threadPool - the AbstractThreadPool being monitoredtask - a unit of work that is about to be processed.
void onTaskCompleteEvent(AbstractThreadPool threadPool,
java.lang.Runnable task)
This event may be fired when a dequeued task has completed processing.
threadPool - the AbstractThreadPool being monitoredtask - the unit of work that has completed processingvoid onTaskQueueOverflowEvent(AbstractThreadPool threadPool)
This event may be fired when the task queue of the AbstractThreadPool
implementation has exceeded its configured size.
threadPool - the AbstractThreadPool being monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||