Package io.agroal.api
Interface AgroalDataSourceMetrics
public interface AgroalDataSourceMetrics
Several metrics provided by the pool.
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptiondefault longNumber of times an acquire operation succeeded.default longNumber of active connections.default longNumber of idle connections in the pool, available to be acquired.default longApproximate number of threads blocked, waiting to acquire a connection.default DurationAverage time an application waited to acquire a connection.default DurationMaximum time an application waited to acquire a connection.default DurationTotal time applications waited to acquire a connection.default longNumber of created connections.default DurationAverage time for a connection to be created.default DurationMaximum time for a connection to be created.default DurationTotal time waiting for a connections to be created.default longNumber of destroyed connections.default longNumber of connections removed from the pool, not counting invalid / idle.default longNumber of connections removed from the pool for being invalid.default longNumber of times a leak was detected.default longMaximum number of connections active simultaneously.default longNumber of connections removed from the pool for being idle.default voidreset()Reset the metrics.
-
Method Details
-
creationCount
default long creationCount()Number of created connections. -
creationTimeAverage
Average time for a connection to be created. -
creationTimeMax
Maximum time for a connection to be created. -
creationTimeTotal
Total time waiting for a connections to be created. -
leakDetectionCount
default long leakDetectionCount()Number of times a leak was detected. A single connection can be detected multiple times. -
invalidCount
default long invalidCount()Number of connections removed from the pool for being invalid. -
flushCount
default long flushCount()Number of connections removed from the pool, not counting invalid / idle. -
reapCount
default long reapCount()Number of connections removed from the pool for being idle. -
destroyCount
default long destroyCount()Number of destroyed connections. -
activeCount
default long activeCount()Number of active connections. This connections are in use and not available to be acquired. -
maxUsedCount
default long maxUsedCount()Maximum number of connections active simultaneously. -
availableCount
default long availableCount()Number of idle connections in the pool, available to be acquired. -
acquireCount
default long acquireCount()Number of times an acquire operation succeeded. -
blockingTimeAverage
Average time an application waited to acquire a connection. -
blockingTimeMax
Maximum time an application waited to acquire a connection. -
blockingTimeTotal
Total time applications waited to acquire a connection. -
awaitingCount
default long awaitingCount()Approximate number of threads blocked, waiting to acquire a connection. -
reset
default void reset()Reset the metrics.
-