public static interface RedisConfiguration.SentinelConfiguration extends RedisConfiguration.WithDatabaseIndex, RedisConfiguration.WithPassword
| Modifier and Type | Method and Description |
|---|---|
default RedisPassword |
getDataNodePassword()
Get the
RedisPassword used when authenticating with a Redis Server. |
default String |
getDataNodeUsername()
Get the username used when authenticating with a Redis Server.
|
NamedNode |
getMaster()
Get the Sentinel master node.
|
RedisPassword |
getSentinelPassword()
Returns the
RedisPassword to use when connecting to a Redis Sentinel. |
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.
|
default void |
setSentinelPassword(char[] password)
Create and set a
RedisPassword to be used when authenticating with Redis Sentinel from the given
Character sequence. |
void |
setSentinelPassword(RedisPassword password)
Set a
RedisPassword to be used when authenticating with Redis Sentinel. |
default void |
setSentinelPassword(String password)
Create and set a
RedisPassword to be used when authenticating with Redis Sentinel from the given
String. |
getDatabase, setDatabasegetPassword, getUsername, setPassword, setPassword, setPassword, setUsernamedefault 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.@Nullable default String getDataNodeUsername()
default RedisPassword getDataNodePassword()
RedisPassword used when authenticating with a Redis Server.default void setSentinelPassword(@Nullable String password)
RedisPassword to be used when authenticating with Redis Sentinel from the given
String.password - can be null.default void setSentinelPassword(@Nullable char[] password)
RedisPassword to be used when authenticating with Redis Sentinel from the given
Character sequence.password - can be null.void setSentinelPassword(RedisPassword password)
RedisPassword to be used when authenticating with Redis Sentinel.password - must not be null use RedisPassword.none() instead.RedisPassword getSentinelPassword()
RedisPassword to use when connecting to a Redis Sentinel. setSentinelPassword(RedisPassword) or RedisPassword.none() if no password has
been set.RedisPassword for authenticating with Redis Sentinel.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.