Package org.redisson.config
Class ReplicatedServersConfig
- java.lang.Object
-
- org.redisson.config.BaseConfig<T>
-
- org.redisson.config.BaseMasterSlaveServersConfig<ReplicatedServersConfig>
-
- org.redisson.config.ReplicatedServersConfig
-
public class ReplicatedServersConfig extends BaseMasterSlaveServersConfig<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
-
-
Constructor Summary
Constructors Constructor Description ReplicatedServersConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicatedServersConfig
addNodeAddress(String... addresses)
Add Redis cluster node address.int
getDatabase()
List<String>
getNodeAddresses()
int
getScanInterval()
ReplicatedServersConfig
setDatabase(int database)
Database index used for Redis connection.void
setNodeAddresses(List<String> nodeAddresses)
ReplicatedServersConfig
setScanInterval(int scanInterval)
Replication group scan interval in milliseconds-
Methods inherited from class org.redisson.config.BaseMasterSlaveServersConfig
checkSkipSlavesInit, getDnsMonitoringInterval, getFailedSlaveCheckInterval, getFailedSlaveReconnectionInterval, getLoadBalancer, getMasterConnectionMinimumIdleSize, getMasterConnectionPoolSize, getReadMode, getSlaveConnectionMinimumIdleSize, getSlaveConnectionPoolSize, getSubscriptionConnectionMinimumIdleSize, getSubscriptionConnectionPoolSize, getSubscriptionMode, setDnsMonitoringInterval, setFailedSlaveCheckInterval, setFailedSlaveReconnectionInterval, setLoadBalancer, setMasterConnectionMinimumIdleSize, setMasterConnectionPoolSize, setReadMode, setSlaveConnectionMinimumIdleSize, setSlaveConnectionPoolSize, setSubscriptionConnectionMinimumIdleSize, setSubscriptionConnectionPoolSize, setSubscriptionMode
-
Methods inherited from class org.redisson.config.BaseConfig
getClientName, getConnectTimeout, getIdleConnectionTimeout, getNameMapper, getPassword, getPingConnectionInterval, getRetryAttempts, getRetryInterval, getSslKeystore, getSslKeystorePassword, getSslProtocols, getSslProvider, getSslTruststore, getSslTruststorePassword, getSubscriptionsPerConnection, getTimeout, getUsername, isKeepAlive, isSslEnableEndpointIdentification, isTcpNoDelay, setClientName, setConnectTimeout, setIdleConnectionTimeout, setKeepAlive, setNameMapper, setPassword, setPingConnectionInterval, setRetryAttempts, setRetryInterval, setSslEnableEndpointIdentification, setSslKeystore, setSslKeystorePassword, setSslProtocols, setSslProvider, setSslTruststore, setSslTruststorePassword, setSubscriptionsPerConnection, setTcpNoDelay, setTimeout, setUsername
-
-
-
-
Method Detail
-
addNodeAddress
public ReplicatedServersConfig addNodeAddress(String... addresses)
Add Redis cluster node address. Use follow format --host:port
- Parameters:
addresses
- inhost:port
format- Returns:
- config
-
getScanInterval
public int getScanInterval()
-
setScanInterval
public ReplicatedServersConfig setScanInterval(int scanInterval)
Replication group scan interval in millisecondsDefault is
1000
- Parameters:
scanInterval
- in milliseconds- Returns:
- config
-
setDatabase
public ReplicatedServersConfig setDatabase(int database)
Database index used for Redis connection.Default is
0
- Parameters:
database
- number- Returns:
- config
-
getDatabase
public int getDatabase()
-
-