public enum RedisTopology extends Enum<RedisTopology>
This is only meaningful in case of a replication Redis client. In case of a cluster and sentinel Redis client, topology is currently always discovered automatically and the topology mode is ignored.
Enum Constant and Description |
---|
DISCOVER
Redis topology is discovered automatically from the first node that is capable of providing
the necessary information.
|
STATIC
Redis topology is configured statically.
|
Modifier and Type | Method and Description |
---|---|
static RedisTopology |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisTopology[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisTopology DISCOVER
public static final RedisTopology STATIC
In case of a replication Redis client, the first node in the list is considered a master and the remaining nodes in the list are considered replicas.
In case of a cluster and sentinel Redis client, static topology configuration is currently not meaningful and is ignored.
public static RedisTopology[] values()
for (RedisTopology c : RedisTopology.values()) System.out.println(c);
public static RedisTopology valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.