public class ClusterConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, freePubSubConnections, group, MAX_SLOT, name2PubSubConnection, singleSlotRange, socketChannelClass| Constructor and Description |
|---|
ClusterConnectionManager(ClusterServersConfig cfg,
Config config) |
| Modifier and Type | Method and Description |
|---|---|
int |
calcSlot(String key) |
protected RedisClientConfig |
createRedisConfig(NodeType type,
URI address,
int timeout,
int commandTimeout) |
URI |
getLastClusterNode() |
boolean |
isClusterMode() |
void |
shutdown() |
addEntry, changeMaster, connectionReadOp, connectionWriteOp, create, createClient, createClient, createMasterSlaveEntry, getCfg, getClients, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getPubSubEntry, getSemaphore, getShutdownLatch, getShutdownPromise, initSingleEntry, initTimer, isShutdown, isShuttingDown, newFailedFuture, newPromise, newSucceededFuture, newTimeout, psubscribe, psubscribe, punsubscribe, punsubscribe, releaseRead, releaseSubscribeConnection, releaseWrite, removeMaster, shutdown, shutdownAsync, stopThreads, subscribe, subscribe, unsubscribe, unsubscribepublic ClusterConnectionManager(ClusterServersConfig cfg, Config config)
protected RedisClientConfig createRedisConfig(NodeType type, URI address, int timeout, int commandTimeout)
createRedisConfig in class MasterSlaveConnectionManagerpublic int calcSlot(String key)
calcSlot in interface ConnectionManagercalcSlot in class MasterSlaveConnectionManagerpublic void shutdown()
shutdown in interface ConnectionManagershutdown in class MasterSlaveConnectionManagerpublic URI getLastClusterNode()
getLastClusterNode in interface ConnectionManagergetLastClusterNode in class MasterSlaveConnectionManagerpublic boolean isClusterMode()
isClusterMode in interface ConnectionManagerisClusterMode in class MasterSlaveConnectionManagerCopyright © 2014–2017 The Redisson Project. All rights reserved.