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
ConstructorDescriptionSentinelConnectionManager
(SentinelServersConfig cfg, Config config, UUID id) -
Method Summary
Modifier and TypeMethodDescriptionapplyNatMap
(RedisURI address) protected MasterSlaveServersConfig
create
(BaseMasterSlaveServersConfig<?> cfg) protected RedisClientConfig
createRedisConfig
(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) protected Collection<RedisURI>
void
shutdown()
protected void
startDNSMonitoring
(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:
startDNSMonitoring
in classMasterSlaveConnectionManager
-
createRedisConfig
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) - Overrides:
createRedisConfig
in classMasterSlaveConnectionManager
-
getDisconnectedNodes
- Overrides:
getDisconnectedNodes
in classMasterSlaveConnectionManager
-
create
- Overrides:
create
in classMasterSlaveConnectionManager
-
getSentinels
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceConnectionManager
- Overrides:
shutdown
in classMasterSlaveConnectionManager
-
applyNatMap
- Specified by:
applyNatMap
in interfaceConnectionManager
- Overrides:
applyNatMap
in classMasterSlaveConnectionManager
-