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