public enum AvailabilityMode extends java.lang.Enum<AvailabilityMode>
| Modifier and Type | Class and Description |
|---|---|
static class |
AvailabilityMode.Externalizer |
| Enum Constant and Description |
|---|
AVAILABLE
Regular operation mode
|
DEGRADED_MODE
Data can not be safely accessed because of a network split or successive nodes leaving.
|
| Modifier and Type | Method and Description |
|---|---|
AvailabilityMode |
min(AvailabilityMode other) |
static AvailabilityMode |
valueOf(int ordinal) |
static AvailabilityMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AvailabilityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AvailabilityMode AVAILABLE
public static final AvailabilityMode DEGRADED_MODE
public static AvailabilityMode[] values()
for (AvailabilityMode c : AvailabilityMode.values()) System.out.println(c);
public static AvailabilityMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic AvailabilityMode min(AvailabilityMode other)
public static AvailabilityMode valueOf(int ordinal)