public enum RedisRole extends Enum<RedisRole>
Enum Constant and Description |
---|
MASTER
Use a MASTER node connection.
|
SENTINEL
Use a SENTINEL node connection.
|
SLAVE
Use a SLAVE node connection.
|
Modifier and Type | Method and Description |
---|---|
static RedisRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisRole MASTER
public static final RedisRole SLAVE
public static final RedisRole SENTINEL
public static RedisRole[] values()
for (RedisRole c : RedisRole.values()) System.out.println(c);
public static RedisRole 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 © 2023 Eclipse. All rights reserved.