Package org.redisson.connection
Class ClientConnectionsEntry
java.lang.Object
org.redisson.connection.ClientConnectionsEntry
- Author:
- Nikita Koksharov
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionClientConnectionsEntry
(RedisClient client, int poolMinSize, int poolMaxSize, IdleConnectionWatcher idleConnectionWatcher, NodeType nodeType, MasterSlaveServersConfig config) -
Method Summary
Modifier and TypeMethodDescriptionacquireConnection
(RedisCommand<?> command) void
addConnection
(RedisConnection conn) connect()
boolean
isFailed()
boolean
boolean
boolean
pollConnection
(RedisCommand<?> command) void
void
releaseConnection
(RedisConnection connection) void
void
releaseSubscribeConnection
(RedisPubSubConnection connection) void
void
void
void
setFreezeReason
(ClientConnectionsEntry.FreezeReason freezeReason) void
setInitialized
(boolean isInited) void
setNodeType
(NodeType nodeType) toString()
void
-
Constructor Details
-
ClientConnectionsEntry
public ClientConnectionsEntry(RedisClient client, int poolMinSize, int poolMaxSize, IdleConnectionWatcher idleConnectionWatcher, NodeType nodeType, MasterSlaveServersConfig config)
-
-
Method Details
-
isMasterForRead
public boolean isMasterForRead() -
isInitialized
public boolean isInitialized() -
setInitialized
public void setInitialized(boolean isInited) -
setNodeType
-
getNodeType
-
resetFirstFail
public void resetFirstFail() -
isFailed
public boolean isFailed() -
trySetupFistFail
public void trySetupFistFail() -
shutdownAsync
-
getClient
-
isFreezed
public boolean isFreezed() -
setFreezeReason
-
getFreezeReason
-
resetConnectionsSemaphore
public void resetConnectionsSemaphore() -
resetPubSubConnectionsSemaphore
public void resetPubSubConnectionsSemaphore() -
acquireConnection
-
releaseConnection
public void releaseConnection() -
addConnection
-
pollConnection
-
releaseConnection
-
connect
-
connectPubSub
-
getAllConnections
-
getAllSubscribeConnections
-
pollSubscribeConnection
-
releaseSubscribeConnection
-
acquireSubscribeConnection
-
releaseSubscribeConnection
public void releaseSubscribeConnection() -
toString
-