Package | Description |
---|---|
org.redisson.config | |
org.redisson.connection |
Modifier and Type | Method and Description |
---|---|
SentinelServersConfig |
SentinelServersConfig.addSentinelAddress(String... addresses)
Add Redis Sentinel node address in host:port format.
|
SentinelServersConfig |
SentinelServersConfig.setDatabase(int database)
Database index used for Redis connection
Default is
0 |
SentinelServersConfig |
SentinelServersConfig.setMasterName(String masterName)
Master server name used by Redis Sentinel servers and master change monitoring task.
|
SentinelServersConfig |
SentinelServersConfig.setScanInterval(int scanInterval)
Sentinel scan interval in milliseconds
|
SentinelServersConfig |
Config.useSentinelServers()
Init sentinel servers configuration.
|
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config,
UUID id) |
Copyright © 2014–2018 The Redisson Project. All rights reserved.