Enum SplitBrainProtectionOn
- java.lang.Object
-
- java.lang.Enum<SplitBrainProtectionOn>
-
- com.hazelcast.splitbrainprotection.SplitBrainProtectionOn
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SplitBrainProtectionOn>
public enum SplitBrainProtectionOn extends java.lang.Enum<SplitBrainProtectionOn>
Represents a cluster split brain protection type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READ
Only read operations will participate in a split brain protection.READ_WRITE
Both read and write operations will participate in a split brain protection.WRITE
Only write operations will participate in a split brain protection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitBrainProtectionOn
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SplitBrainProtectionOn[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final SplitBrainProtectionOn READ
Only read operations will participate in a split brain protection.
-
WRITE
public static final SplitBrainProtectionOn WRITE
Only write operations will participate in a split brain protection.
-
READ_WRITE
public static final SplitBrainProtectionOn READ_WRITE
Both read and write operations will participate in a split brain protection.
-
-
Method Detail
-
values
public static SplitBrainProtectionOn[] 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 (SplitBrainProtectionOn c : SplitBrainProtectionOn.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitBrainProtectionOn valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-