Class ClientConnectionsEntry


  • public class ClientConnectionsEntry
    extends Object
    Author:
    Nikita Koksharov
    • Constructor Detail

      • ClientConnectionsEntry

        public ClientConnectionsEntry​(RedisClient client,
                                      int poolMinSize,
                                      int poolMaxSize,
                                      int subscribePoolMinSize,
                                      int subscribePoolMaxSize,
                                      ConnectionManager connectionManager,
                                      NodeType nodeType)
    • Method Detail

      • isMasterForRead

        public boolean isMasterForRead()
      • isInitialized

        public boolean isInitialized()
      • setInitialized

        public void setInitialized​(boolean isInited)
      • setNodeType

        public void setNodeType​(NodeType nodeType)
      • getNodeType

        public NodeType getNodeType()
      • resetFirstFail

        public void resetFirstFail()
      • isFailed

        public boolean isFailed()
      • trySetupFistFail

        public void trySetupFistFail()
      • isFreezed

        public boolean isFreezed()
      • reset

        public void reset()
      • getFreeAmount

        public int getFreeAmount()
      • acquireConnection

        public void acquireConnection​(Runnable runnable,
                                      RedisCommand<?> command)
      • releaseConnection

        public void releaseConnection()
      • releaseConnection

        public void releaseConnection​(RedisConnection connection)
      • releaseSubscribeConnection

        public void releaseSubscribeConnection​(RedisPubSubConnection connection)
      • acquireSubscribeConnection

        public void acquireSubscribeConnection​(Runnable runnable)
      • releaseSubscribeConnection

        public void releaseSubscribeConnection()