public class ConnectionEntry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionEntry.FreezeReason |
static class |
ConnectionEntry.NodeType |
Constructor and Description |
---|
ConnectionEntry(RedisClient client,
int poolSize,
ConnectionListener connectListener,
ConnectionEntry.NodeType nodeType) |
Modifier and Type | Method and Description |
---|---|
io.netty.util.concurrent.Future<RedisConnection> |
connect(MasterSlaveServersConfig config) |
io.netty.util.concurrent.Future<RedisPubSubConnection> |
connectPubSub(MasterSlaveServersConfig config) |
RedisClient |
getClient() |
int |
getFreeAmount() |
ConnectionEntry.FreezeReason |
getFreezeReason() |
ConnectionEntry.NodeType |
getNodeType() |
int |
incFailedAttempts() |
boolean |
isFreezed() |
RedisConnection |
pollConnection() |
void |
releaseConnection() |
void |
releaseConnection(RedisConnection connection) |
void |
resetFailedAttempts() |
void |
setFreezed(boolean freezed) |
void |
setFreezeReason(ConnectionEntry.FreezeReason freezeReason) |
String |
toString() |
boolean |
tryAcquireConnection() |
public ConnectionEntry(RedisClient client, int poolSize, ConnectionListener connectListener, ConnectionEntry.NodeType nodeType)
public ConnectionEntry.NodeType getNodeType()
public void resetFailedAttempts()
public int incFailedAttempts()
public RedisClient getClient()
public boolean isFreezed()
public void setFreezeReason(ConnectionEntry.FreezeReason freezeReason)
public ConnectionEntry.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)
Copyright © 2014–2015. All rights reserved.