Class ConnectionInfo<E>

  • Type Parameters:
    E -

    public final class ConnectionInfo<E>
    extends Object
    Pooled Connection information, that might be used for monitoring reasons.
    Author:
    Alexey Stashok
    • Method Detail

      • isReady

        public boolean isReady()
        Returns:
        true if the Connection is in ready state, waiting for a user to pull it out from the pool. Returns false if the Connection is currently busy.
      • getReadyTimeStamp

        public long getReadyTimeStamp()
        Returns:
        the timestamp (in milliseconds) when this Connection was returned to the pool and its state switched to ready, or -1 if the Connection is currently in busy state.
      • getPooledTimeStamp

        public long getPooledTimeStamp()
        Returns:
        the timestamp (in milliseconds) when this Connection was added to the pool: either created directly by pool or attached.