public class LoadBalancerManager extends Object
Constructor and Description |
---|
LoadBalancerManager(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry entry) |
Modifier and Type | Method and Description |
---|---|
RFuture<Void> |
add(ClientConnectionsEntry entry) |
boolean |
contains(InetSocketAddress addr) |
ClientConnectionsEntry |
freeze(ClientConnectionsEntry connectionEntry,
ClientConnectionsEntry.FreezeReason freezeReason) |
ClientConnectionsEntry |
freeze(String host,
int port,
ClientConnectionsEntry.FreezeReason freezeReason) |
int |
getAvailableClients() |
RFuture<RedisConnection> |
getConnection(RedisCommand<?> command,
InetSocketAddress addr) |
RFuture<RedisConnection> |
nextConnection(RedisCommand<?> command) |
RFuture<RedisPubSubConnection> |
nextPubSubConnection() |
void |
returnConnection(RedisConnection connection) |
void |
returnPubSubConnection(RedisPubSubConnection connection) |
void |
shutdown() |
void |
shutdownAsync() |
boolean |
unfreeze(String host,
int port,
ClientConnectionsEntry.FreezeReason freezeReason) |
public LoadBalancerManager(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
public int getAvailableClients()
public boolean unfreeze(String host, int port, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(String host, int port, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(ClientConnectionsEntry connectionEntry, ClientConnectionsEntry.FreezeReason freezeReason)
public RFuture<RedisPubSubConnection> nextPubSubConnection()
public boolean contains(InetSocketAddress addr)
public RFuture<RedisConnection> getConnection(RedisCommand<?> command, InetSocketAddress addr)
public RFuture<RedisConnection> nextConnection(RedisCommand<?> command)
public void returnPubSubConnection(RedisPubSubConnection connection)
public void returnConnection(RedisConnection connection)
public void shutdown()
public void shutdownAsync()
Copyright © 2014–2017 The Redisson Project. All rights reserved.