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, lazyConnectLatch, MAX_SLOT, serviceManager, singleSlotRange, subscribeService -
Constructor Summary
Constructors -
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) voidgetEntry(int slot) getEntry(InetSocketAddress address) getEntry(RedisClient redisClient) intgetSlot(MasterSlaveEntry entry) voidMethods inherited from class org.redisson.connection.MasterSlaveConnectionManager
closeNodeConnection, closeNodeConnections, connect, connectToNode, connectToNode, createClient, createClient, createClient, createCommandExecutor, disconnectNode, getEntry, getReadEntry, getServiceManager, getSubscribeService, getWriteEntry, internalShutdown, lazyConnect, shutdown, startDNSMonitoring
-
Constructor Details
-
ClusterConnectionManager
-
-
Method Details
-
create
- Overrides:
createin classMasterSlaveConnectionManager
-
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
- 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
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
-
getSlot
-
getLastClusterNode
- Specified by:
getLastClusterNodein interfaceConnectionManager- Overrides:
getLastClusterNodein classMasterSlaveConnectionManager
-