public enum AvailabilityMode extends 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(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(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 nullpublic AvailabilityMode min(AvailabilityMode other)
public static AvailabilityMode valueOf(int ordinal)
Copyright © 2021 JBoss by Red Hat. All rights reserved.