Package org.redisson.cluster
Class ClusterConnectionManager
java.lang.Object
org.redisson.connection.MasterSlaveConnectionManager
org.redisson.cluster.ClusterConnectionManager
- All Implemented Interfaces:
ConnectionManager
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.connection.MasterSlaveConnectionManager
codec, config, dnsMonitor, DUMMY_TIMEOUT, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass, subscribeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyNatMap(RedisURI address) intcalcSlot(byte[] key) intprotected CompletableFuture<RedisClient>changeMaster(int slot, RedisURI address) protected RedisClientConfigcreateRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) getEntry(int slot) getEntry(InetSocketAddress address) getEntry(RedisClient redisClient) protected MasterSlaveEntrybooleanvoidshutdown()Methods inherited from class org.redisson.connection.MasterSlaveConnectionManager
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, resolveIP, resolveIP, shutdown, startDNSMonitoring, stopThreads, toURI
-
Constructor Details
-
ClusterConnectionManager
-
-
Method Details
-
getEntrySet
- Specified by:
getEntrySetin interfaceConnectionManager- Overrides:
getEntrySetin classMasterSlaveConnectionManager
-
getEntry
- Overrides:
getEntryin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
changeMaster
- Overrides:
changeMasterin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
createRedisConfig
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) - Overrides:
createRedisConfigin classMasterSlaveConnectionManager
-
calcSlot
public int calcSlot(byte[] key) - Specified by:
calcSlotin interfaceConnectionManager- Overrides:
calcSlotin classMasterSlaveConnectionManager
-
calcSlot
- Specified by:
calcSlotin interfaceConnectionManager- Overrides:
calcSlotin classMasterSlaveConnectionManager
-
applyNatMap
- Specified by:
applyNatMapin interfaceConnectionManager- Overrides:
applyNatMapin classMasterSlaveConnectionManager
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceConnectionManager- Overrides:
shutdownin classMasterSlaveConnectionManager
-
getLastClusterNode
- Specified by:
getLastClusterNodein interfaceConnectionManager- Overrides:
getLastClusterNodein classMasterSlaveConnectionManager
-
isClusterMode
public boolean isClusterMode()- Specified by:
isClusterModein interfaceConnectionManager- Overrides:
isClusterModein classMasterSlaveConnectionManager
-