public class ClientConnectionsEntry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientConnectionsEntry.FreezeReason |
static class |
ClientConnectionsEntry.NodeType |
Constructor and Description |
---|
ClientConnectionsEntry(RedisClient client,
int poolMinSize,
int poolMaxSize,
int subscribePoolMinSize,
int subscribePoolMaxSize,
ConnectionListener connectionListener,
ClientConnectionsEntry.NodeType serverMode,
IdleConnectionWatcher watcher,
MasterSlaveServersConfig config) |
public ClientConnectionsEntry(RedisClient client, int poolMinSize, int poolMaxSize, int subscribePoolMinSize, int subscribePoolMaxSize, ConnectionListener connectionListener, ClientConnectionsEntry.NodeType serverMode, IdleConnectionWatcher watcher, MasterSlaveServersConfig config)
public ClientConnectionsEntry.NodeType getNodeType()
public void resetFailedAttempts()
public int getFailedAttempts()
public int incFailedAttempts()
public RedisClient getClient()
public boolean isFreezed()
public void setFreezeReason(ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry.FreezeReason getFreezeReason()
public void setFreezed(boolean freezed)
public int getFreeAmount()
public boolean tryAcquireConnection()
public void releaseConnection()
public RedisConnection pollConnection()
public void releaseConnection(RedisConnection connection)
public io.netty.util.concurrent.Future<RedisConnection> connect(MasterSlaveServersConfig config)
public io.netty.util.concurrent.Future<RedisPubSubConnection> connectPubSub(MasterSlaveServersConfig config)
public Queue<RedisPubSubConnection> getAllSubscribeConnections()
public RedisPubSubConnection pollSubscribeConnection()
public void releaseSubscribeConnection(RedisPubSubConnection connection)
public boolean tryAcquireSubscribeConnection()
public void releaseSubscribeConnection()
public boolean freezeMaster(ClientConnectionsEntry.FreezeReason reason)
Copyright © 2014–2015. All rights reserved.