public class LoadBalancerManager extends Object
Constructor and Description |
---|
LoadBalancerManager(MasterSlaveServersConfig config,
ConnectionManager connectionManager,
MasterSlaveEntry entry) |
public LoadBalancerManager(MasterSlaveServersConfig config, ConnectionManager connectionManager, MasterSlaveEntry entry)
public void changeType(InetSocketAddress addr, NodeType nodeType)
protected void changeType(Object addr, NodeType nodeType, ClientConnectionsEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
public int getAvailableClients()
public boolean unfreeze(URI address, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(URI address, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(ClientConnectionsEntry connectionEntry, ClientConnectionsEntry.FreezeReason freezeReason)
public RFuture<RedisPubSubConnection> nextPubSubConnection()
public boolean contains(InetSocketAddress addr)
protected String convert(InetSocketAddress addr)
public boolean contains(String 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.