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
config, dnsMonitor, lazyConnectLatch, MAX_SLOT, serviceManager, singleSlotRange, subscribeService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MasterSlaveServersConfig
create
(BaseMasterSlaveServersConfig<?> cfg) void
void
protected void
startDNSMonitoring
(RedisClient masterHost) Methods inherited from class org.redisson.connection.MasterSlaveConnectionManager
calcSlot, calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connect, connectToNode, connectToNode, createClient, createClient, createClient, createCommandExecutor, createRedisConfig, disconnectNode, getEntry, getEntry, getEntry, getEntry, getEntry, getEntrySet, getLastClusterNode, getReadEntry, getServiceManager, getSubscribeService, getWriteEntry, internalShutdown, lazyConnect, shutdown
-
Constructor Details
-
ReplicatedConnectionManager
-
-
Method Details
-
doConnect
- Overrides:
doConnect
in classMasterSlaveConnectionManager
-
startDNSMonitoring
- Overrides:
startDNSMonitoring
in classMasterSlaveConnectionManager
-
create
- Overrides:
create
in classMasterSlaveConnectionManager
-
shutdown
- Specified by:
shutdown
in interfaceConnectionManager
- Overrides:
shutdown
in classMasterSlaveConnectionManager
-