public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, DUMMY_TIMEOUT, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass, subscribeService| 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 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) |
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, 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 Collection<RedisURI> getDisconnectedNodes()
getDisconnectedNodes in class MasterSlaveConnectionManagerprotected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
create in class MasterSlaveConnectionManagerpublic Collection<RedisClient> getSentinels()
public void shutdown()
shutdown in interface ConnectionManagershutdown in class MasterSlaveConnectionManagerpublic RedisURI applyNatMap(RedisURI address)
applyNatMap in interface ConnectionManagerapplyNatMap in class MasterSlaveConnectionManagerCopyright © 2014–2020 Redisson. All rights reserved.