Package org.redisson.connection
Class SentinelConnectionManager
java.lang.Object
org.redisson.connection.MasterSlaveConnectionManager
org.redisson.connection.SentinelConnectionManager
- All Implemented Interfaces:
ConnectionManager
- Author:
- Nikita Koksharov
-
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
ConstructorsConstructorDescriptionSentinelConnectionManager(SentinelServersConfig cfg, Config config, UUID id) -
Method Summary
Modifier and TypeMethodDescriptionapplyNatMap(RedisURI address) protected MasterSlaveServersConfigcreate(BaseMasterSlaveServersConfig<?> cfg) protected RedisClientConfigcreateRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) protected Collection<RedisURI>voidshutdown()protected voidstartDNSMonitoring(RedisClient masterHost) Methods inherited from class org.redisson.connection.MasterSlaveConnectionManager
calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, connectToNode, createClient, createClient, createClient, createNodeNotFoundException, disconnectNode, getCfg, getCodec, getConfig, getConnectionEventsHub, getConnectionWatcher, 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
-
SentinelConnectionManager
-
-
Method Details
-
startDNSMonitoring
- Overrides:
startDNSMonitoringin classMasterSlaveConnectionManager
-
createRedisConfig
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) - Overrides:
createRedisConfigin classMasterSlaveConnectionManager
-
getDisconnectedNodes
- Overrides:
getDisconnectedNodesin classMasterSlaveConnectionManager
-
create
- Overrides:
createin classMasterSlaveConnectionManager
-
getSentinels
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceConnectionManager- Overrides:
shutdownin classMasterSlaveConnectionManager
-
applyNatMap
- Specified by:
applyNatMapin interfaceConnectionManager- Overrides:
applyNatMapin classMasterSlaveConnectionManager
-