public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, connectListener, freePubSubConnections, group, MAX_SLOT, name2PubSubConnection, singleSlotRange, socketChannelClass
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config) |
Modifier and Type | Method and Description |
---|---|
protected MasterSlaveServersConfig |
create(BaseMasterSlaveServersConfig<?> cfg) |
protected MasterSlaveEntry |
createMasterSlaveEntry(MasterSlaveServersConfig config,
HashSet<ClusterSlotRange> slots) |
protected void |
onSentinelAdded(SentinelServersConfig cfg,
String msg,
MasterSlaveServersConfig c) |
protected void |
onSlaveAdded(URL addr,
String msg) |
void |
shutdown() |
addEntry, calcSlot, changeMaster, connectionReadOp, connectionWriteOp, createClient, createClient, getClients, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, getConnectListener, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getLastClusterNode, getPubSubEntry, getSemaphore, getShutdownLatch, getShutdownPromise, init, initEntry, initTimer, isClusterMode, isShutdown, isShuttingDown, newFailedFuture, newPromise, newSucceededFuture, newTimeout, psubscribe, psubscribe, punsubscribe, punsubscribe, releaseRead, releaseSubscribeConnection, releaseWrite, removeMaster, shutdown, shutdownAsync, slaveDown, stopThreads, subscribe, subscribe, unsubscribe, unsubscribe
public SentinelConnectionManager(SentinelServersConfig cfg, Config config)
protected MasterSlaveEntry createMasterSlaveEntry(MasterSlaveServersConfig config, HashSet<ClusterSlotRange> slots)
createMasterSlaveEntry
in class MasterSlaveConnectionManager
protected void onSentinelAdded(SentinelServersConfig cfg, String msg, MasterSlaveServersConfig c)
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
create
in class MasterSlaveConnectionManager
public void shutdown()
shutdown
in interface ConnectionManager
shutdown
in class MasterSlaveConnectionManager
Copyright © 2014–2017 The Redisson Project. All rights reserved.