Package com.yandex.ydb.table.stats
Class SessionPoolStats
- java.lang.Object
-
- com.yandex.ydb.table.stats.SessionPoolStats
-
public class SessionPoolStats extends Object
- Author:
- Sergey Polovko
-
-
Constructor Summary
Constructors Constructor Description SessionPoolStats(int minSize, int maxSize, int idleCount, int disconnectedCount, int acquiredCount, int pendingAcquireCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAcquiredCount()Number of sessions currently acquired from pool and not yet released.intgetDisconnectedCount()Number of sessions with unknown status due to some transport errors.intgetIdleCount()Number of sessions that were released after use and waiting to be acquired again or to be removed from pool by idle timeout.intgetMaxSize()Max number of sessions in pool.intgetMinSize()Min number of sessions that should remain in session pool after idle session cleanup.intgetPendingAcquireCount()Number of sessions pending acquire due to pool overflow.StringtoString()
-
-
-
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.
-
-