public interface ThreadPoolNotificationHandler
Modifier and Type | Method and Description |
---|---|
void |
queueLowerThresholdReached(ThreadPool pool)
This is called when a configured lower threshold for a thread pool
queue has been reached.
|
void |
queueUpperThresholdReached(ThreadPool pool)
This is called when a configured upper threshold for a thread pool
queue has been reached.
|
void |
rejectedExecution(ThreadPool pool)
Notifies rejection of execution of a runnable by the pool.
|
void queueUpperThresholdReached(ThreadPool pool)
It will be called only once when the threshold is reached and not again
unless queueLowerThresholdReached(ThreadPool)
has been notified.
pool
- the thread pool.void queueLowerThresholdReached(ThreadPool pool)
If will be called only after
queueUpperThresholdReached(ThreadPool)
and the queue size has
then fallen back to the lower threshold.
pool
- thread pool.void rejectedExecution(ThreadPool pool)
When this occurs most pools will still have executed the runnable in the current thread but this is extremely undesirable behaviour. Other pools like the Inbound Thread Pool may have taken other action like terminating the connection.
pool
- the thread poolCopyright © 2016 Push Technology Ltd. All Rights Reserved.