public static enum MasterSelectionPolicy.Type extends Enum<MasterSelectionPolicy.Type>
Enum Constant and Description |
---|
ANY_MASTER |
ANY_STANDBY_MASTER |
PRIMARY_MASTER |
SPECIFIED_MASTER |
Modifier and Type | Method and Description |
---|---|
static MasterSelectionPolicy.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterSelectionPolicy.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterSelectionPolicy.Type PRIMARY_MASTER
public static final MasterSelectionPolicy.Type ANY_STANDBY_MASTER
public static final MasterSelectionPolicy.Type ANY_MASTER
public static final MasterSelectionPolicy.Type SPECIFIED_MASTER
public static MasterSelectionPolicy.Type[] values()
for (MasterSelectionPolicy.Type c : MasterSelectionPolicy.Type.values()) System.out.println(c);
public static MasterSelectionPolicy.Type 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.