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