Package org.redisson.config
Class ReplicatedServersConfig
java.lang.Object
org.redisson.config.BaseConfig<ReplicatedServersConfig>
org.redisson.config.BaseMasterSlaveServersConfig<ReplicatedServersConfig>
org.redisson.config.ReplicatedServersConfig
Configuration for an Azure Redis Cache or AWS ElastiCache servers.
A replication group is composed of a single master endpoint and multiple read slaves.
- Author:
- Steve Ungerer, Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.config.BaseConfig
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNodeAddress
(String... addresses) Add Redis cluster node address.int
int
boolean
setDatabase
(int database) Database index used for Redis connection.setMonitorIPChanges
(boolean monitorIPChanges) Check each Redis hostname defined in configuration for IP address changes during scan process.void
setNodeAddresses
(List<String> nodeAddresses) setScanInterval
(int scanInterval) Replication group scan interval in millisecondsMethods inherited from class org.redisson.config.BaseMasterSlaveServersConfig
getDnsMonitoringInterval, getFailedSlaveCheckInterval, getFailedSlaveNodeDetector, getFailedSlaveReconnectionInterval, getLoadBalancer, getMasterConnectionMinimumIdleSize, getMasterConnectionPoolSize, getReadMode, getSlaveConnectionMinimumIdleSize, getSlaveConnectionPoolSize, getSubscriptionConnectionMinimumIdleSize, getSubscriptionConnectionPoolSize, getSubscriptionMode, isSlaveNotUsed, setDnsMonitoringInterval, setFailedSlaveCheckInterval, setFailedSlaveNodeDetector, setFailedSlaveReconnectionInterval, setLoadBalancer, setMasterConnectionMinimumIdleSize, setMasterConnectionPoolSize, setReadMode, setSlaveConnectionMinimumIdleSize, setSlaveConnectionPoolSize, setSubscriptionConnectionMinimumIdleSize, setSubscriptionConnectionPoolSize, setSubscriptionMode
Methods inherited from class org.redisson.config.BaseConfig
getClientName, getCommandMapper, getConnectTimeout, getCredentialsResolver, getIdleConnectionTimeout, getNameMapper, getPassword, getPingConnectionInterval, getRetryAttempts, getRetryInterval, getSslCiphers, getSslKeyManagerFactory, getSslKeystore, getSslKeystorePassword, getSslKeystoreType, getSslProtocols, getSslProvider, getSslTrustManagerFactory, getSslTruststore, getSslTruststorePassword, getSubscriptionsPerConnection, getSubscriptionTimeout, getTcpKeepAliveCount, getTcpKeepAliveIdle, getTcpKeepAliveInterval, getTcpUserTimeout, getTimeout, getUsername, isKeepAlive, isSslEnableEndpointIdentification, isTcpNoDelay, setClientName, setCommandMapper, setConnectTimeout, setCredentialsResolver, setIdleConnectionTimeout, setKeepAlive, setNameMapper, setPassword, setPingConnectionInterval, setRetryAttempts, setRetryInterval, setSslCiphers, setSslEnableEndpointIdentification, setSslKeyManagerFactory, setSslKeystore, setSslKeystorePassword, setSslKeystoreType, setSslProtocols, setSslProvider, setSslTrustManagerFactory, setSslTruststore, setSslTruststorePassword, setSubscriptionsPerConnection, setSubscriptionTimeout, setTcpKeepAliveCount, setTcpKeepAliveIdle, setTcpKeepAliveInterval, setTcpNoDelay, setTcpUserTimeout, setTimeout, setUsername
-
Constructor Details
-
ReplicatedServersConfig
public ReplicatedServersConfig()
-
-
Method Details
-
addNodeAddress
Add Redis cluster node address. Use follow format --host:port
- Parameters:
addresses
- inhost:port
format- Returns:
- config
-
getNodeAddresses
-
setNodeAddresses
-
getScanInterval
public int getScanInterval() -
setScanInterval
Replication group scan interval in millisecondsDefault is
1000
- Parameters:
scanInterval
- in milliseconds- Returns:
- config
-
setDatabase
Database index used for Redis connection.Default is
0
- Parameters:
database
- number- Returns:
- config
-
getDatabase
public int getDatabase() -
setMonitorIPChanges
Check each Redis hostname defined in configuration for IP address changes during scan process.Default is
false
- Parameters:
monitorIPChanges
- boolean value- Returns:
- config
-
isMonitorIPChanges
public boolean isMonitorIPChanges()
-