Enum AssuredMode
- java.lang.Object
-
- java.lang.Enum<AssuredMode>
-
- org.opends.server.replication.common.AssuredMode
-
- All Implemented Interfaces:
Serializable,Comparable<AssuredMode>
public enum AssuredMode extends Enum<AssuredMode>
The various modes supported for assured replication.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SAFE_DATA_MODESafe data assured mode.SAFE_READ_MODESafe read assured mode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetValue()Get a numeric representation of the mode.static AssuredModevalueOf(byte value)Returns the AssuredMode matching the passed mode numeric representation.static AssuredModevalueOf(String name)Returns the enum constant of this type with the specified name.static AssuredMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAFE_READ_MODE
public static final AssuredMode SAFE_READ_MODE
Safe read assured mode.
-
SAFE_DATA_MODE
public static final AssuredMode SAFE_DATA_MODE
Safe data assured mode.
-
-
Method Detail
-
values
public static AssuredMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AssuredMode c : AssuredMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssuredMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static AssuredMode valueOf(byte value) throws IllegalArgumentException
Returns the AssuredMode matching the passed mode numeric representation.- Parameters:
value- The numeric value for the mode to return- Returns:
- The matching AssuredMode
- Throws:
IllegalArgumentException- If provided mode value is wrong
-
getValue
public byte getValue()
Get a numeric representation of the mode.- Returns:
- The numeric representation of the mode
-
-