public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, DUMMY_TIMEOUT, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config,
UUID id) |
Modifier and Type | Method and Description |
---|---|
RedisURI |
applyNatMap(RedisURI address) |
protected MasterSlaveServersConfig |
create(BaseMasterSlaveServersConfig<?> cfg) |
protected MasterSlaveEntry |
createMasterSlaveEntry(MasterSlaveServersConfig config) |
protected RedisClientConfig |
createRedisConfig(NodeType type,
RedisURI address,
int timeout,
int commandTimeout,
String sslHostname) |
Collection<RedisClient> |
getSentinels() |
void |
shutdown() |
protected void |
startDNSMonitoring(RedisClient masterHost) |
addEntry, calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, createClient, createClient, createClient, createNodeNotFoundFuture, disconnectNode, disconnectNode, getCfg, getCodec, getCommandExecutor, 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, removeEntry, shutdown, stopThreads
public SentinelConnectionManager(SentinelServersConfig cfg, Config config, UUID id)
protected void startDNSMonitoring(RedisClient masterHost)
startDNSMonitoring
in class MasterSlaveConnectionManager
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname)
createRedisConfig
in class MasterSlaveConnectionManager
protected MasterSlaveEntry createMasterSlaveEntry(MasterSlaveServersConfig config)
createMasterSlaveEntry
in class MasterSlaveConnectionManager
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
create
in class MasterSlaveConnectionManager
public Collection<RedisClient> getSentinels()
public void shutdown()
shutdown
in interface ConnectionManager
shutdown
in class MasterSlaveConnectionManager
public RedisURI applyNatMap(RedisURI address)
applyNatMap
in interface ConnectionManager
applyNatMap
in class MasterSlaveConnectionManager
Copyright © 2014–2020 Redisson. All rights reserved.