public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config,
UUID id) |
Modifier and Type | Method and Description |
---|---|
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, applyNatMap, calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, createClient, createClient, createClient, getCfg, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, 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
Copyright © 2014–2019 The Redisson Project. All rights reserved.