Class ConnectionPool.Statistics

  • Enclosing class:
    ConnectionPool

    public static final class ConnectionPool.Statistics
    extends Object
    Statistics for a connection pool.
    • Method Detail

      • maxPoolSize

        public int maxPoolSize()
        Returns the maximum size of the pool.
        Returns:
        the maximum size of the pool.
      • currentPoolSize

        public int currentPoolSize()
        Returns the current size of the pool. This includes connections which are currently in use by the application, connections sitting idle in the queue and pending connections which are currently in the process of being established. The returned value is always less than or equal to the maximum pool size.
        Returns:
        The current size of the pool.
      • waitingQueueSize

        public int waitingQueueSize()
        Returns the number of subscribers waiting for a connection to become available or established.
        Returns:
        The number of subscribers waiting for a connection to become available or established.
      • connectionsIn

        public int connectionsIn()
        Returns the number of connections which are sitting idle in the connection pool.
        Returns:
        The number of connections which are sitting idle in the connection pool.
      • connectionsOut

        public int connectionsOut()
        Returns the number of connections which have been acquired by the application.
        Returns:
        The number of connections which have been acquired by the application.
      • connectionsPending

        public int connectionsPending()
        Returns the number of connections which are in the process of being established.
        Returns:
        The number of connections which are in the process of being established.