public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, connectListener, entries, group, MAX_SLOT, name2PubSubConnection, singleSlotRange, socketChannelClass
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config) |
Modifier and Type | Method and Description |
---|---|
protected void |
onSentinelAdded(SentinelServersConfig cfg,
String msg,
MasterSlaveServersConfig c) |
protected void |
onSlaveAdded(URI addr,
String msg) |
void |
shutdown() |
addEntry, calcSlot, changeMaster, connectionReadOp, connectionWriteOp, createClient, createClient, getClients, getCodec, getConfig, getConnectionEventsHub, getConnectionWatcher, getConnectListener, getEntries, getEntry, getEntry, getEntry, getGroup, getPubSubEntry, getShutdownLatch, init, init, initEntry, isShutdown, isShuttingDown, newFailedFuture, newPromise, newSucceededFuture, newTimeout, psubscribe, punsubscribe, releaseRead, releaseSubscribeConnection, releaseWrite, removeMaster, shutdownAsync, slaveDown, slaveDown, subscribe, unsubscribe
public SentinelConnectionManager(SentinelServersConfig cfg, Config config)
protected void onSentinelAdded(SentinelServersConfig cfg, String msg, MasterSlaveServersConfig c)
public void shutdown()
shutdown
in interface ConnectionManager
shutdown
in class MasterSlaveConnectionManager
Copyright © 2014–2016. All rights reserved.