public interface IOReactorMetricsListener
The implementing class can monitor and act upon important metrics such as active threads, saturation levels, and resource starvation.
| Modifier and Type | Method and Description |
|---|---|
void |
onQueueWaitTime(long averageWaitTimeMillis)
Notifies about the average wait time for connection requests in the queue.
|
void |
onResourceStarvationDetected()
Invoked when the number of pending connection requests exceeds the
maximum allowed connections, indicating possible resource starvation.
|
void |
onThreadPoolSaturation(double saturationPercentage)
Invoked to report the saturation level of the thread pool as a percentage
of the active threads to the maximum allowed connections.
|
void |
onThreadPoolStatus(int activeThreads,
int pendingConnections)
Invoked to report the current status of the thread pool, including
active threads and pending connections.
|
void onThreadPoolStatus(int activeThreads,
int pendingConnections)
activeThreads - The number of active threads handling connections.pendingConnections - The number of pending connection requests in the queue.void onThreadPoolSaturation(double saturationPercentage)
saturationPercentage - The percentage indicating thread pool saturation.void onResourceStarvationDetected()
void onQueueWaitTime(long averageWaitTimeMillis)
averageWaitTimeMillis - average time in milliseconds that connection requests spend in the queue.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.