Class ConnectionPoolMetrics

java.lang.Object
com.loomcache.client.ConnectionPoolMetrics

public class ConnectionPoolMetrics extends Object
Live counters for the client's connection pool.

Tracks the number of active and idle connections, total connections created and destroyed, wait-time statistics, and connection errors. Exposed for monitoring and diagnostics; all fields are updated atomically.

  • Constructor Details

    • ConnectionPoolMetrics

      public ConnectionPoolMetrics()
  • Method Details

    • recordConnectionCreated

      public void recordConnectionCreated()
    • recordConnectionDestroyed

      public void recordConnectionDestroyed()
    • incrementWaitCount

      public void incrementWaitCount()
    • decrementWaitCount

      public void decrementWaitCount()
    • recordWaitTime

      public void recordWaitTime(long waitTimeMs)
    • recordConnectionError

      public void recordConnectionError()
    • getActiveConnections

      public long getActiveConnections()
    • setActiveConnections

      public void setActiveConnections(long count)
    • getIdleConnections

      public long getIdleConnections()
    • setIdleConnections

      public void setIdleConnections(long count)
    • getTotalCreated

      public long getTotalCreated()
    • getTotalDestroyed

      public long getTotalDestroyed()
    • getCurrentWaitCount

      public long getCurrentWaitCount()
    • getAverageWaitTime

      public double getAverageWaitTime()
    • getConnectionErrors

      public long getConnectionErrors()
    • getTotalWaitCount

      public long getTotalWaitCount()
    • getTotalWaitTime

      public long getTotalWaitTime()
    • getMetrics