ConnectionManager
public class ClusterConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass
Constructor | Description |
---|---|
ClusterConnectionManager(ClusterServersConfig cfg,
Config config,
UUID id) |
Modifier and Type | Method | Description |
---|---|---|
int |
calcSlot(byte[] key) |
|
int |
calcSlot(String key) |
|
protected RedisClientConfig |
createRedisConfig(NodeType type,
URI address,
int timeout,
int commandTimeout,
String sslHostname) |
|
String |
getConfigEndpointHostName() |
|
URI |
getLastClusterNode() |
|
boolean |
isClusterMode() |
|
void |
shutdown() |
addEntry, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, create, createClient, createClient, createClient, createMasterSlaveEntry, getCfg, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, getEntry, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getId, getShutdownLatch, getShutdownPromise, getSubscribeService, initSingleEntry, initTimer, isShutdown, isShuttingDown, newTimeout, releaseRead, releaseWrite, removeEntry, shutdown, startDNSMonitoring, stopThreads
public ClusterConnectionManager(ClusterServersConfig cfg, Config config, UUID id)
protected RedisClientConfig createRedisConfig(NodeType type, URI address, int timeout, int commandTimeout, String sslHostname)
createRedisConfig
in class MasterSlaveConnectionManager
public String getConfigEndpointHostName()
public int calcSlot(byte[] key)
calcSlot
in interface ConnectionManager
calcSlot
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
public URI getLastClusterNode()
getLastClusterNode
in interface ConnectionManager
getLastClusterNode
in class MasterSlaveConnectionManager
public boolean isClusterMode()
isClusterMode
in interface ConnectionManager
isClusterMode
in class MasterSlaveConnectionManager
Copyright © 2014–2018 The Redisson Project. All rights reserved.