Package org.redisson.connection
Class SentinelConnectionManager
- java.lang.Object
-
- org.redisson.connection.MasterSlaveConnectionManager
-
- org.redisson.connection.SentinelConnectionManager
-
- All Implemented Interfaces:
ConnectionManager
public class SentinelConnectionManager extends MasterSlaveConnectionManager
- 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
Constructors Constructor Description SentinelConnectionManager(SentinelServersConfig cfg, Config config, UUID id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisURIapplyNatMap(RedisURI address)protected MasterSlaveServersConfigcreate(BaseMasterSlaveServersConfig<?> cfg)protected RedisClientConfigcreateRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname)protected Collection<RedisURI>getDisconnectedNodes()Collection<RedisClient>getSentinels()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, shutdown, stopThreads
-
-
-
-
Constructor Detail
-
SentinelConnectionManager
public SentinelConnectionManager(SentinelServersConfig cfg, Config config, UUID id)
-
-
Method Detail
-
startDNSMonitoring
protected void startDNSMonitoring(RedisClient masterHost)
- Overrides:
startDNSMonitoringin classMasterSlaveConnectionManager
-
createRedisConfig
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname)
- Overrides:
createRedisConfigin classMasterSlaveConnectionManager
-
getDisconnectedNodes
protected Collection<RedisURI> getDisconnectedNodes()
- Overrides:
getDisconnectedNodesin classMasterSlaveConnectionManager
-
create
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
- Overrides:
createin classMasterSlaveConnectionManager
-
getSentinels
public Collection<RedisClient> getSentinels()
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceConnectionManager- Overrides:
shutdownin classMasterSlaveConnectionManager
-
applyNatMap
public RedisURI applyNatMap(RedisURI address)
- Specified by:
applyNatMapin interfaceConnectionManager- Overrides:
applyNatMapin classMasterSlaveConnectionManager
-
-