Package org.redisson.connection
Interface ConnectionManager
- All Known Implementing Classes:
ClusterConnectionManager,MasterSlaveConnectionManager,ReplicatedConnectionManager,SentinelConnectionManager,SingleConnectionManager
public interface ConnectionManager
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionapplyNatMap(RedisURI address) intcalcSlot(byte[] key) intconnectionReadOp(NodeSource source, RedisCommand<?> command) connectionWriteOp(NodeSource source, RedisCommand<?> command) createClient(NodeType type, InetSocketAddress address, RedisURI uri, String sslHostname) createClient(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) createClient(NodeType type, RedisURI address, String sslHostname) getCfg()getCodec()getEntry(int slot) getEntry(InetSocketAddress address) getEntry(RedisClient redisClient) io.netty.channel.EventLoopGroupgetGroup()getId()io.netty.util.concurrent.Future<Void>booleanbooleanbooleanio.netty.util.TimeoutnewTimeout(io.netty.util.TimerTask task, long delay, TimeUnit unit) voidreleaseRead(NodeSource source, RedisConnection connection) voidreleaseWrite(NodeSource source, RedisConnection connection) voidshutdown()void
-
Method Details
-
applyNatMap
-
resolveIP
-
getId
String getId() -
getElementsSubscribeService
ElementsSubscribeService getElementsSubscribeService() -
getSubscribeService
PublishSubscribeService getSubscribeService() -
getExecutor
ExecutorService getExecutor() -
getLastClusterNode
RedisURI getLastClusterNode() -
getCfg
Config getCfg() -
isClusterMode
boolean isClusterMode() -
getConnectionEventsHub
ConnectionEventsHub getConnectionEventsHub() -
isShutdown
boolean isShutdown() -
isShuttingDown
boolean isShuttingDown() -
getConnectionWatcher
IdleConnectionWatcher getConnectionWatcher() -
calcSlot
-
calcSlot
int calcSlot(byte[] key) -
getConfig
MasterSlaveServersConfig getConfig() -
getCodec
Codec getCodec() -
getEntrySet
Collection<MasterSlaveEntry> getEntrySet() -
getEntry
-
getEntry
-
getEntry
-
releaseRead
-
releaseWrite
-
connectionReadOp
-
connectionWriteOp
-
createClient
RedisClient createClient(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) -
createClient
RedisClient createClient(NodeType type, InetSocketAddress address, RedisURI uri, String sslHostname) -
createClient
-
getEntry
-
shutdown
void shutdown() -
shutdown
-
getGroup
io.netty.channel.EventLoopGroup getGroup() -
newTimeout
-
getShutdownLatch
InfinitySemaphoreLatch getShutdownLatch() -
getShutdownPromise
io.netty.util.concurrent.Future<Void> getShutdownPromise() -
createNodeNotFoundException
-