Package org.redisson.connection
Class ReplicatedConnectionManager
java.lang.Object
org.redisson.connection.MasterSlaveConnectionManager
org.redisson.connection.ReplicatedConnectionManager
- All Implemented Interfaces:
ConnectionManager
ConnectionManager
for AWS ElastiCache Replication Groups or Azure Redis Cache. By providing all nodes
of the replication group to this manager, the role of each node can be polled to determine
if a failover has occurred resulting in a new master.- Author:
- Nikita Koksharov, Steve Ungerer
-
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
ConstructorDescriptionReplicatedConnectionManager
(ReplicatedServersConfig cfg, Config config, UUID id) -
Method Summary
Modifier and TypeMethodDescriptionprotected MasterSlaveServersConfig
create
(BaseMasterSlaveServersConfig<?> cfg) void
shutdown()
protected void
startDNSMonitoring
(RedisClient masterHost) Methods inherited from class org.redisson.connection.MasterSlaveConnectionManager
applyNatMap, calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, connectToNode, createClient, createClient, createClient, createNodeNotFoundException, createRedisConfig, disconnectNode, getCfg, getCodec, getConfig, getConnectionEventsHub, getConnectionWatcher, getDisconnectedNodes, getElementsSubscribeService, getEntry, getEntry, getEntry, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getId, getLastClusterNode, getShutdownLatch, getShutdownPromise, getSubscribeService, initSingleEntry, initTimer, isClusterMode, isShutdown, isShuttingDown, newTimeout, releaseRead, releaseWrite, resolveIP, resolveIP, shutdown, stopThreads, toURI
-
Constructor Details
-
ReplicatedConnectionManager
-
-
Method Details
-
startDNSMonitoring
- Overrides:
startDNSMonitoring
in classMasterSlaveConnectionManager
-
create
- Overrides:
create
in classMasterSlaveConnectionManager
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceConnectionManager
- Overrides:
shutdown
in classMasterSlaveConnectionManager
-