Class SessionPoolStats


  • public class SessionPoolStats
    extends Object
    Author:
    Sergey Polovko
    • Constructor Detail

      • SessionPoolStats

        public SessionPoolStats​(int minSize,
                                int maxSize,
                                int idleCount,
                                int disconnectedCount,
                                int acquiredCount,
                                int pendingAcquireCount)
    • Method Detail

      • getMinSize

        public int getMinSize()
        Min number of sessions that should remain in session pool after idle session cleanup. This cleanup removes idle sessions that have idle time more than maxIdleTimeMillis. Session pool does not create sessions at startup, so IdleCount can be less than MinSize
      • getMaxSize

        public int getMaxSize()
        Max number of sessions in pool. If session pool is full and timeout for acquire is set, acquire task will be put in a queue. If session pool is full and timeout is not set, "too many acquired objects" error will be received.
      • getIdleCount

        public int getIdleCount()
        Number of sessions that were released after use and waiting to be acquired again or to be removed from pool by idle timeout.
      • getDisconnectedCount

        public int getDisconnectedCount()
        Number of sessions with unknown status due to some transport errors.
      • getAcquiredCount

        public int getAcquiredCount()
        Number of sessions currently acquired from pool and not yet released.
      • getPendingAcquireCount

        public int getPendingAcquireCount()
        Number of sessions pending acquire due to pool overflow.