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 getAvailableSlaves()
public int getAvailableClients()
public boolean unfreeze(RedisURI address, ClientConnectionsEntry.FreezeReason freezeReason)
public boolean unfreeze(InetSocketAddress address, ClientConnectionsEntry.FreezeReason freezeReason)
public boolean unfreeze(ClientConnectionsEntry entry, ClientConnectionsEntry.FreezeReason freezeReason)
public ClientConnectionsEntry freeze(RedisURI 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(RedisURI addr)
public boolean contains(RedisURI addr)
public boolean contains(RedisClient redisClient)
public ClientConnectionsEntry getEntry(RedisClient redisClient)
public RFuture<RedisConnection> getConnection(RedisCommand<?> command, RedisURI 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–2020 Redisson. All rights reserved.