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 |
|---|---|
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, createNodeNotFoundFuture, getCfg, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, getElementsSubscribeService, getEntry, getEntry, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getId, getLastClusterNode, getShutdownLatch, getShutdownPromise, getSubscribeService, initSingleEntry, initTimer, isClusterMode, isShutdown, isShuttingDown, newTimeout, releaseRead, releaseWrite, removeEntry, shutdown, stopThreadspublic SentinelConnectionManager(SentinelServersConfig cfg, Config config, UUID id)
protected void startDNSMonitoring(RedisClient masterHost)
startDNSMonitoring in class MasterSlaveConnectionManagerprotected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname)
createRedisConfig in class MasterSlaveConnectionManagerprotected MasterSlaveEntry createMasterSlaveEntry(MasterSlaveServersConfig config)
createMasterSlaveEntry in class MasterSlaveConnectionManagerprotected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
create in class MasterSlaveConnectionManagerpublic Collection<RedisClient> getSentinels()
public void shutdown()
shutdown in interface ConnectionManagershutdown in class MasterSlaveConnectionManagerCopyright © 2014–2019 Redisson. All rights reserved.