Package org.redisson.connection
Interface ConnectionManager
-
- All Known Implementing Classes:
ClusterConnectionManager
,MasterSlaveConnectionManager
,ReplicatedConnectionManager
,SentinelConnectionManager
,SingleConnectionManager
public interface ConnectionManager
- Author:
- Nikita Koksharov
-
-
Method Summary
-
-
-
Method Detail
-
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
int calcSlot(String key)
-
calcSlot
int calcSlot(byte[] key)
-
getConfig
MasterSlaveServersConfig getConfig()
-
getCodec
Codec getCodec()
-
getEntrySet
Collection<MasterSlaveEntry> getEntrySet()
-
getEntry
MasterSlaveEntry getEntry(String name)
-
getEntry
MasterSlaveEntry getEntry(int slot)
-
getEntry
MasterSlaveEntry getEntry(InetSocketAddress address)
-
releaseRead
void releaseRead(NodeSource source, RedisConnection connection)
-
releaseWrite
void releaseWrite(NodeSource source, RedisConnection connection)
-
connectionReadOp
RFuture<RedisConnection> connectionReadOp(NodeSource source, RedisCommand<?> command)
-
connectionWriteOp
RFuture<RedisConnection> connectionWriteOp(NodeSource source, RedisCommand<?> command)
-
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
RedisClient createClient(NodeType type, RedisURI address, String sslHostname)
-
getEntry
MasterSlaveEntry getEntry(RedisClient redisClient)
-
shutdown
void shutdown()
-
shutdown
void shutdown(long quietPeriod, long timeout, TimeUnit unit)
-
getGroup
io.netty.channel.EventLoopGroup getGroup()
-
newTimeout
io.netty.util.Timeout newTimeout(io.netty.util.TimerTask task, long delay, TimeUnit unit)
-
getShutdownLatch
InfinitySemaphoreLatch getShutdownLatch()
-
getShutdownPromise
io.netty.util.concurrent.Future<Void> getShutdownPromise()
-
createNodeNotFoundException
RedisNodeNotFoundException createNodeNotFoundException(NodeSource source)
-
-