public class SentinelServersConfig extends BaseMasterSlaveServersConfig<SentinelServersConfig>
Constructor and Description |
---|
SentinelServersConfig() |
Modifier and Type | Method and Description |
---|---|
SentinelServersConfig |
addSentinelAddress(String... addresses) |
String |
getMasterName() |
String |
getPassword() |
int |
getRetryAttempts() |
int |
getRetryInterval() |
List<URI> |
getSentinelAddresses() |
int |
getSubscriptionsPerConnection() |
SentinelServersConfig |
setMasterName(String masterName) |
T |
setPassword(String password)
Password for Redis authentication.
|
void |
setRetryAttempts(int retryAttempts)
Reconnection attempts amount.
|
void |
setRetryInterval(int retryInterval)
Time pause before next reconnection attempt.
|
T |
setSubscriptionsPerConnection(int subscriptionsPerConnection)
Subscriptions per Redis connection limit
Default is 5
|
public SentinelServersConfig setMasterName(String masterName)
public String getMasterName()
public SentinelServersConfig addSentinelAddress(String... addresses)
public T setSubscriptionsPerConnection(int subscriptionsPerConnection)
subscriptionsPerConnection
- public int getSubscriptionsPerConnection()
public T setPassword(String password)
null
password
- public String getPassword()
public void setRetryAttempts(int retryAttempts)
Future
callback fails in case of async operation.
Used then connection with redis server is down.retryAttempts
- public int getRetryAttempts()
public void setRetryInterval(int retryInterval)
retryInterval
- - time in millisecondspublic int getRetryInterval()
Copyright © 2014. All rights reserved.