Enum Class SplitBrainProtectionOn

java.lang.Object
java.lang.Enum<SplitBrainProtectionOn>
com.hazelcast.splitbrainprotection.SplitBrainProtectionOn
All Implemented Interfaces:
Serializable, Comparable<SplitBrainProtectionOn>, Constable

public enum SplitBrainProtectionOn extends Enum<SplitBrainProtectionOn>
Represents a cluster split brain protection type
  • Enum Constant Details

    • 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 Details

    • values

      public static SplitBrainProtectionOn[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SplitBrainProtectionOn valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null