public enum RedisRole extends Enum<RedisRole>
| Enum Constant and Description | 
|---|
| MASTERUse a MASTER node connection. | 
| REPLICAUse a REPLICA node connection. | 
| SENTINELUse a SENTINEL 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 REPLICA
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 © 2022 Eclipse. All rights reserved.