DiffusionTM Publisher API 6.3.2
public interface ThreadPoolNotificationHandler
|Modifier and Type||Method and Description|
This is called when a configured lower threshold for a thread pool queue has been reached.
This is called when a configured upper threshold for a thread pool queue has been reached.
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
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 behavior. Other pools like the Inbound Thread Pool may have taken other action like terminating the connection.
pool- the thread pool
Copyright © 2019 Push Technology Ltd. All Rights Reserved.