public enum RedisSlaves extends Enum<RedisSlaves>
| Enum Constant and Description | 
|---|
| ALWAYSQueries are always run on SLAVE nodes (never on MASTER node). | 
| NEVERNever use SLAVES, queries are always run on a MASTER node. | 
| SHAREQueries can be randomly run on both MASTER and SLAVE nodes. | 
| Modifier and Type | Method and Description | 
|---|---|
| static RedisSlaves | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static RedisSlaves[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final RedisSlaves NEVER
public static final RedisSlaves SHARE
public static final RedisSlaves ALWAYS
public static RedisSlaves[] values()
for (RedisSlaves c : RedisSlaves.values()) System.out.println(c);
public static RedisSlaves 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.