public class LoadBalancerManagerImpl extends Object implements LoadBalancerManager
Constructor and Description |
---|
LoadBalancerManagerImpl(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry entry) |
Modifier and Type | Method and Description |
---|---|
io.netty.util.concurrent.Future<Void> |
add(ClientConnectionsEntry entry) |
ClientConnectionsEntry |
freeze(String host,
int port,
ClientConnectionsEntry.FreezeReason freezeReason) |
int |
getAvailableClients() |
io.netty.util.concurrent.Future<RedisConnection> |
getConnection(InetSocketAddress addr) |
io.netty.util.concurrent.Future<RedisConnection> |
nextConnection() |
io.netty.util.concurrent.Future<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 io.netty.util.concurrent.Future<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 io.netty.util.concurrent.Future<RedisPubSubConnection> nextPubSubConnection()
nextPubSubConnection
in interface LoadBalancerManager
public io.netty.util.concurrent.Future<RedisConnection> getConnection(InetSocketAddress addr)
getConnection
in interface LoadBalancerManager
public io.netty.util.concurrent.Future<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. All rights reserved.