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
config, dnsMonitor, isConnected, lazyConnectLatch, MAX_SLOT, serviceManager, singleSlotRange, subscribeService -
Constructor Summary
ConstructorsConstructorDescriptionClusterConnectionManager(ClusterServersConfig cfg, ServiceManager serviceManager) -
Method Summary
Modifier and TypeMethodDescriptionintcalcSlot(byte[] key) intcalcSlot(io.netty.buffer.ByteBuf key) intprotected CompletableFuture<RedisClient> changeMaster(int slot, RedisURI address) protected MasterSlaveServersConfigcreate(BaseMasterSlaveServersConfig<?> cfg) protected RedisClientConfigcreateRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) voidprotected MasterSlaveEntrygetEntry(int slot) getEntry(InetSocketAddress address) getEntry(RedisClient redisClient) booleanvoidMethods inherited from class org.redisson.connection.MasterSlaveConnectionManager
closeNodeConnection, closeNodeConnections, connect, connectToNode, connectToNode, createClient, createClient, createClient, disconnectNode, getDisconnectedNodes, getEntry, getReadEntry, getServiceManager, getSubscribeService, getWriteEntry, internalShutdown, lazyConnect, shutdown, startDNSMonitoring
-
Constructor Details
-
ClusterConnectionManager
-
-
Method Details
-
create
- Overrides:
createin classMasterSlaveConnectionManager
-
doConnect
public void doConnect()- Overrides:
doConnectin classMasterSlaveConnectionManager
-
getEntrySet
- Specified by:
getEntrySetin interfaceConnectionManager- Overrides:
getEntrySetin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
getEntry
- Specified by:
getEntryin interfaceConnectionManager- Overrides:
getEntryin classMasterSlaveConnectionManager
-
changeMaster
- Overrides:
changeMasterin classMasterSlaveConnectionManager
-
getEntry
- 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
public int calcSlot(io.netty.buffer.ByteBuf key) - Specified by:
calcSlotin interfaceConnectionManager- Overrides:
calcSlotin classMasterSlaveConnectionManager
-
calcSlot
- Specified by:
calcSlotin interfaceConnectionManager- Overrides:
calcSlotin classMasterSlaveConnectionManager
-
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
-