Package org.redisson.connection
Class ReplicatedConnectionManager
- java.lang.Object
-
- org.redisson.connection.MasterSlaveConnectionManager
-
- org.redisson.connection.ReplicatedConnectionManager
-
- All Implemented Interfaces:
ConnectionManager
public class ReplicatedConnectionManager extends MasterSlaveConnectionManager
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
Constructors Constructor Description ReplicatedConnectionManager(ReplicatedServersConfig cfg, Config config, UUID id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MasterSlaveServersConfig
create(BaseMasterSlaveServersConfig<?> cfg)
void
shutdown()
-
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, shutdown, startDNSMonitoring, stopThreads
-
-
-
-
Constructor Detail
-
ReplicatedConnectionManager
public ReplicatedConnectionManager(ReplicatedServersConfig cfg, Config config, UUID id)
-
-
Method Detail
-
create
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
- Overrides:
create
in classMasterSlaveConnectionManager
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceConnectionManager
- Overrides:
shutdown
in classMasterSlaveConnectionManager
-
-