Enum Class QuiescePolicy

java.lang.Object
java.lang.Enum<QuiescePolicy>
org.openspaces.core.multicluster.QuiescePolicy
All Implemented Interfaces:
Serializable, Comparable<QuiescePolicy>, Constable

public enum QuiescePolicy extends Enum<QuiescePolicy>
How a quiesced cluster is treated. A quiesced space is alive and reachable but rejects operations with com.gigaspaces.admin.quiesce.QuiesceException - typically during maintenance - so it is neither a healthy target nor a failed cluster.
  • Enum Constant Details

    • RETRY_UNTIL_ACTIVE

      public static final QuiescePolicy RETRY_UNTIL_ACTIVE
      Retry the mutation until the cluster leaves quiesce mode. The caller's operation succeeds on the active cluster and the quiesced cluster catches up once maintenance ends, rather than the whole fan-out failing for the duration of the maintenance window (PIC-6085 acceptance criterion A5).
    • TREAT_AS_UNAVAILABLE

      public static final QuiescePolicy TREAT_AS_UNAVAILABLE
      Treat quiesce like unavailability: the cluster stops receiving traffic and normal failover applies. Appropriate for long maintenance windows.
    • FAIL

      public static final QuiescePolicy FAIL
      Surface the QuiesceException to the caller immediately.
  • Method Details

    • values

      public static QuiescePolicy[] 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 QuiescePolicy 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