Package org.redisson.connection
Class SentinelConnectionManager
java.lang.Object
org.redisson.connection.MasterSlaveConnectionManager
org.redisson.connection.SentinelConnectionManager
- All Implemented Interfaces:
ConnectionManager
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.connection.MasterSlaveConnectionManager
config, dnsMonitor, lazyConnectLatch, MAX_SLOT, serviceManager, singleSlotRange, subscribeService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MasterSlaveServersConfig
create
(BaseMasterSlaveServersConfig<?> cfg) protected RedisClientConfig
createRedisConfig
(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) void
void
protected void
startDNSMonitoring
(RedisClient masterHost) Methods inherited from class org.redisson.connection.MasterSlaveConnectionManager
calcSlot, calcSlot, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connect, connectToNode, connectToNode, createClient, createClient, createClient, createCommandExecutor, disconnectNode, getEntry, getEntry, getEntry, getEntry, getEntry, getEntrySet, getLastClusterNode, getReadEntry, getServiceManager, getSubscribeService, getWriteEntry, internalShutdown, lazyConnect, shutdown
-
Constructor Details
-
SentinelConnectionManager
-
-
Method Details
-
doConnect
- Overrides:
doConnect
in classMasterSlaveConnectionManager
-
startDNSMonitoring
- Overrides:
startDNSMonitoring
in classMasterSlaveConnectionManager
-
createRedisConfig
protected RedisClientConfig createRedisConfig(NodeType type, RedisURI address, int timeout, int commandTimeout, String sslHostname) - Overrides:
createRedisConfig
in classMasterSlaveConnectionManager
-
create
- Overrides:
create
in classMasterSlaveConnectionManager
-
getSentinels
-
shutdown
- Specified by:
shutdown
in interfaceConnectionManager
- Overrides:
shutdown
in classMasterSlaveConnectionManager
-