Package io.agroal.api

Interface AgroalDataSourceMetrics


public interface AgroalDataSourceMetrics
Several metrics provided by the pool.
Author:
Luis Barreiro
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Number of times an acquire operation succeeded.
    default long
    Number active of connections.
    default long
    Number of idle connections in the pool, available to be acquired.
    default long
    Approximate number of threads blocked, waiting to acquire a connection.
    default Duration
    Average time an application waited to acquire a connection.
    default Duration
    Maximum time an application waited to acquire a connection.
    default Duration
    Total time applications waited to acquire a connection.
    default long
    Number of created connections.
    default Duration
    Average time for a connection to be created.
    default Duration
    Maximum time for a connection to be created.
    default Duration
    Total time waiting for a connections to be created.
    default long
    Number of destroyed connections.
    default long
    Number of connections removed from the pool, not counting invalid / idle.
    default long
    Number of connections removed from the pool for being invalid.
    default long
    Number of times a leak was detected.
    default long
    Maximum number of connections active simultaneously.
    default long
    Number of connections removed from the pool for being idle.
    default void
    Reset the metrics.
  • Method Details

    • 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.