public static interface RedisConfiguration.SentinelConfiguration extends RedisConfiguration.WithDatabaseIndex, RedisConfiguration.WithPassword
| Modifier and Type | Method and Description |
|---|---|
NamedNode |
getMaster()
Get the Sentinel master node.
|
Set<RedisNode> |
getSentinels()
Returns an
Collections.unmodifiableSet(Set) of Sentinels. |
void |
setMaster(NamedNode master)
Set the master node.
|
default void |
setMaster(String name)
Set the name of the master node.
|
getDatabase, setDatabasegetPassword, setPassword, setPassword, setPassworddefault void setMaster(String name)
name - must not be null.void setMaster(NamedNode master)
master - must not be null.@Nullable NamedNode getMaster()
Set<RedisNode> getSentinels()
Collections.unmodifiableSet(Set) of Sentinels.Set of sentinels. Never null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.