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