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(RedisClient redisClient, NodeType nodeType)
protected void changeType(NodeType nodeType, ClientConnectionsEntry entry)
public RFuture<Void> add(ClientConnectionsEntry entry)
public int getAvailableClients()
public boolean unfreeze(URI address, ClientConnectionsEntry.FreezeReason freezeReason)
public boolean unfreeze(InetSocketAddress address, ClientConnectionsEntry.FreezeReason freezeReason)
public boolean unfreeze(ClientConnectionsEntry entry, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(URI address, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(InetSocketAddress address, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(RedisClient redisClient, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(ClientConnectionsEntry connectionEntry, ClientConnectionsEntry.FreezeReason freezeReason)
public RFuture<RedisPubSubConnection> nextPubSubConnection()
public boolean contains(InetSocketAddress addr)
public boolean contains(URI addr)
public boolean contains(RedisClient redisClient)
protected ClientConnectionsEntry getEntry(URI addr)
protected ClientConnectionsEntry getEntry(InetSocketAddress address)
protected ClientConnectionsEntry getEntry(RedisClient redisClient)
protected String convert(InetSocketAddress addr)
public RFuture<RedisConnection> getConnection(RedisCommand<?> command, URI 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–2018 The Redisson Project. All rights reserved.