Enum Class ReplayPolicy

java.lang.Object
java.lang.Enum<ReplayPolicy>
org.j7m.middleware.api.reliability.ReplayPolicy
All Implemented Interfaces:
Serializable, Comparable<ReplayPolicy>, Constable

public enum ReplayPolicy extends Enum<ReplayPolicy>
Replay policy for invocation recovery decisions.

The enum is immutable and thread-safe. Phase 6.1 records intent only and does not implement a durable replay log.

  • Enum Constant Details

    • NO_REPLAY

      public static final ReplayPolicy NO_REPLAY
      Never replay the invocation.
    • DETERMINISTIC_ONLY

      public static final ReplayPolicy DETERMINISTIC_ONLY
      Replay only operations declared deterministic by the application.
    • WHEN_IDEMPOTENCY_KEY_PRESENT

      public static final ReplayPolicy WHEN_IDEMPOTENCY_KEY_PRESENT
      Replay only when an explicit idempotency key is present.
  • Method Details

    • values

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