public static enum BalancingSettings.Policy extends Enum<BalancingSettings.Policy>
| Enum Constant and Description |
|---|
USE_ALL_NODES
Use all available cluster nodes regardless datacenter locality
|
USE_DETECT_LOCAL_DC
Detecting of local DC by the latency measuring
|
USE_PREFERABLE_LOCATION
Use preferable location (data center),
preferableLocation is a name of location (VLA, MYT, SAS, MAN).
|
| Modifier and Type | Method and Description |
|---|---|
static BalancingSettings.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BalancingSettings.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BalancingSettings.Policy USE_ALL_NODES
public static final BalancingSettings.Policy USE_PREFERABLE_LOCATION
public static final BalancingSettings.Policy USE_DETECT_LOCAL_DC
public static BalancingSettings.Policy[] values()
for (BalancingSettings.Policy c : BalancingSettings.Policy.values()) System.out.println(c);
public static BalancingSettings.Policy 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. All rights reserved.