Interface ConnectionPoolStatistics


public interface ConnectionPoolStatistics
An interface encapsulating database connection pool statistics
  • Method Details

    • username

      String username()
      Returns:
      the connection pool username
    • snapshot

      Returns a list containing a snapshot of connection pool states.
      Returns:
      a snapshot of pool states associated with this statistics object
    • size

      int size()
      Returns:
      the number of connections being managed by the pool
    • available

      int available()
      Returns:
      the number of available connections
    • inUse

      int inUse()
      Returns:
      the number of connections in use
    • timestamp

      long timestamp()
      Returns:
      the timestamp
    • creationDate

      long creationDate()
      Returns:
      the time at which this statistics object was created
    • created

      int created()
      Returns:
      the number of connections created by the pool
    • destroyed

      int destroyed()
      Returns:
      the number of idle connections destroyed by the pool
    • resetTime

      long resetTime()
      Returns:
      the last time stats were reset
    • requests

      int requests()
      Returns:
      the number of connection requests since last reset
    • requestsPerSecond

      int requestsPerSecond()
      Returns:
      the number of connection requests per second
    • failedRequests

      int failedRequests()
      Returns:
      the number of failed connection requests since last reset
    • failedRequestsPerSecond

      int failedRequestsPerSecond()
      Returns:
      the number of failed connection requests per second
    • averageGetTime

      long averageGetTime()
      Returns:
      the avarage check out time in ms
    • minimumCheckOutTime

      long minimumCheckOutTime()
      Returns:
      the minimum check out time in ms
    • maximumCheckOutTime

      long maximumCheckOutTime()
      Returns:
      the maximum check out time in ms