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) int
calcSlot
(byte[] key) int
connectionReadOp
(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.EventLoopGroup
getGroup()
getId()
io.netty.util.concurrent.Future<Void>
boolean
boolean
boolean
io.netty.util.Timeout
newTimeout
(io.netty.util.TimerTask task, long delay, TimeUnit unit) void
releaseRead
(NodeSource source, RedisConnection connection) void
releaseWrite
(NodeSource source, RedisConnection connection) void
shutdown()
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
-