public class ClusterConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, DUMMY_TIMEOUT, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass, subscribeService| Constructor and Description |
|---|
ClusterConnectionManager(ClusterServersConfig cfg,
Config config,
UUID id) |
| Modifier and Type | Method and Description |
|---|---|
RedisURI |
applyNatMap(RedisURI address) |
int |
calcSlot(byte[] key) |
int |
calcSlot(String key) |
protected RFuture<RedisClient> |
changeMaster(int slot,
RedisURI address) |
protected RedisClientConfig |
createRedisConfig(NodeType type,
RedisURI address,
int timeout,
int commandTimeout,
String sslHostname) |
MasterSlaveEntry |
getEntry(InetSocketAddress address) |
MasterSlaveEntry |
getEntry(int slot) |
MasterSlaveEntry |
getEntry(RedisClient redisClient) |
protected MasterSlaveEntry |
getEntry(RedisURI addr) |
Collection<MasterSlaveEntry> |
getEntrySet() |
RedisURI |
getLastClusterNode() |
boolean |
isClusterMode() |
void |
shutdown() |
closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, connectToNode, create, createClient, createClient, createClient, createNodeNotFoundException, disconnectNode, getCfg, getCodec, getConfig, getConnectionEventsHub, getConnectionWatcher, getDisconnectedNodes, getElementsSubscribeService, getEntry, getExecutor, getGroup, getId, getShutdownLatch, getShutdownPromise, getSubscribeService, initSingleEntry, initTimer, isShutdown, isShuttingDown, newTimeout, releaseRead, releaseWrite, shutdown, startDNSMonitoring, stopThreadspublic ClusterConnectionManager(ClusterServersConfig cfg, Config config, UUID id)
public Collection<MasterSlaveEntry> getEntrySet()
getEntrySet in interface ConnectionManagergetEntrySet in class MasterSlaveConnectionManagerprotected MasterSlaveEntry getEntry(RedisURI addr)
getEntry in class MasterSlaveConnectionManagerpublic MasterSlaveEntry getEntry(RedisClient redisClient)
getEntry in interface ConnectionManagergetEntry in class MasterSlaveConnectionManagerpublic MasterSlaveEntry getEntry(InetSocketAddress address)
getEntry in interface ConnectionManagergetEntry in class MasterSlaveConnectionManagerprotected RFuture<RedisClient> changeMaster(int slot, RedisURI address)
changeMaster in class MasterSlaveConnectionManagerpublic MasterSlaveEntry getEntry(int slot)
getEntry in interface ConnectionManagergetEntry in class MasterSlaveConnectionManagerprotected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname)
createRedisConfig in class MasterSlaveConnectionManagerpublic int calcSlot(byte[] key)
calcSlot in interface ConnectionManagercalcSlot in class MasterSlaveConnectionManagerpublic int calcSlot(String key)
calcSlot in interface ConnectionManagercalcSlot in class MasterSlaveConnectionManagerpublic RedisURI applyNatMap(RedisURI address)
applyNatMap in interface ConnectionManagerapplyNatMap in class MasterSlaveConnectionManagerpublic void shutdown()
shutdown in interface ConnectionManagershutdown in class MasterSlaveConnectionManagerpublic RedisURI getLastClusterNode()
getLastClusterNode in interface ConnectionManagergetLastClusterNode in class MasterSlaveConnectionManagerpublic boolean isClusterMode()
isClusterMode in interface ConnectionManagerisClusterMode in class MasterSlaveConnectionManagerCopyright © 2014–2021 Redisson. All rights reserved.