public interface LoadBalancer
Modifier and Type | Method and Description |
---|---|
void |
add(SubscribesConnectionEntry entry) |
Collection<RedisPubSubConnection> |
freeze(String host,
int port) |
int |
getAvailableClients() |
RedisConnection |
getConnection(RedisClient client) |
void |
init(MasterSlaveServersConfig config,
ConnectionManager connectionManager) |
RedisConnection |
nextConnection() |
RedisPubSubConnection |
nextPubSubConnection() |
void |
returnConnection(RedisConnection connection) |
void |
returnSubscribeConnection(RedisPubSubConnection connection) |
void |
shutdown() |
void |
shutdownAsync() |
void |
unfreeze(String host,
int port) |
RedisConnection getConnection(RedisClient client)
int getAvailableClients()
void shutdownAsync()
void shutdown()
void unfreeze(String host, int port)
Collection<RedisPubSubConnection> freeze(String host, int port)
void init(MasterSlaveServersConfig config, ConnectionManager connectionManager)
void add(SubscribesConnectionEntry entry)
RedisConnection nextConnection()
RedisPubSubConnection nextPubSubConnection()
void returnConnection(RedisConnection connection)
void returnSubscribeConnection(RedisPubSubConnection connection)
Copyright © 2014–2015. All rights reserved.