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 TypeMethodDescriptionintcalcSlot(byte[] key) intcalcSlot(io.netty.buffer.ByteBuf key) intvoidconnect()createClient(NodeType type, InetSocketAddress address, RedisURI uri, String sslHostname) createClient(NodeType type, RedisURI address, String sslHostname) getEntry(InetSocketAddress address) getEntry(RedisClient redisClient) getReadEntry(int slot) getWriteEntry(int slot) booleanvoidshutdown()void
-
Method Details
-
connect
- Throws:
InterruptedException
-
getSubscribeService
PublishSubscribeService getSubscribeService() -
getLastClusterNode
RedisURI getLastClusterNode() -
isClusterMode
boolean isClusterMode() -
calcSlot
-
calcSlot
int calcSlot(io.netty.buffer.ByteBuf key) -
calcSlot
int calcSlot(byte[] key) -
getEntrySet
Collection<MasterSlaveEntry> getEntrySet() -
getEntry
-
getWriteEntry
-
getReadEntry
-
getEntry
-
getEntry
-
createClient
RedisClient createClient(NodeType type, InetSocketAddress address, RedisURI uri, String sslHostname) -
createClient
-
getEntry
-
shutdown
void shutdown() -
shutdown
-
getServiceManager
ServiceManager getServiceManager()
-