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 address, NodeType nodeType)
public RFuture<Void> add(ClientConnectionsEntry entry)
public Collection<ClientConnectionsEntry> getEntries()
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(ClientConnectionsEntry connectionEntry, ClientConnectionsEntry.FreezeReason freezeReason)
public RFuture<RedisPubSubConnection> nextPubSubConnection()
public boolean contains(InetSocketAddress addr)
public boolean isUnfreezed(URI addr)
public boolean contains(URI addr)
public boolean contains(RedisClient redisClient)
public RFuture<RedisConnection> getConnection(RedisCommand<?> command, URI addr)
public RFuture<RedisConnection> getConnection(RedisCommand<?> command, RedisClient client)
public RFuture<RedisConnection> nextConnection(RedisCommand<?> command)
public void returnPubSubConnection(RedisPubSubConnection connection)
public void returnConnection(RedisConnection connection)
Copyright © 2014–2018 The Redisson Project. All rights reserved.