Package io.agroal.api
Interface AgroalDataSourceMetrics
-
public interface AgroalDataSourceMetrics
Several metrics provided by the pool.- Author:
- Luis Barreiro
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default long
acquireCount()
Number of times an acquire operation succeeded.default long
activeCount()
Number active of connections.default long
availableCount()
Number of idle connections in the pool, available to be acquired.default long
awaitingCount()
Approximate number of threads blocked, waiting to acquire a connection.default Duration
blockingTimeAverage()
Average time an application waited to acquire a connection.default Duration
blockingTimeMax()
Maximum time an application waited to acquire a connection.default Duration
blockingTimeTotal()
Total time applications waited to acquire a connection.default long
creationCount()
Number of created connections.default Duration
creationTimeAverage()
Average time for a connection to be created.default Duration
creationTimeMax()
Maximum time for a connection to be created.default Duration
creationTimeTotal()
Total time waiting for a connections to be created.default long
destroyCount()
Number of destroyed connections.default long
flushCount()
Number of connections removed from the pool, not counting invalid / idle.default long
invalidCount()
Number of connections removed from the pool for being invalid.default long
leakDetectionCount()
Number of times a leak was detected.default long
maxUsedCount()
Maximum number of connections active simultaneously.default long
reapCount()
Number of connections removed from the pool for being idle.default void
reset()
Reset the metrics.
-
-
-
Method Detail
-
creationCount
default long creationCount()
Number of created connections.
-
creationTimeAverage
default Duration creationTimeAverage()
Average time for a connection to be created.
-
creationTimeMax
default Duration creationTimeMax()
Maximum time for a connection to be created.
-
creationTimeTotal
default Duration 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 active of 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
default Duration blockingTimeAverage()
Average time an application waited to acquire a connection.
-
blockingTimeMax
default Duration blockingTimeMax()
Maximum time an application waited to acquire a connection.
-
blockingTimeTotal
default Duration 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.
-
-