Enum Class ReplayPolicy
- All Implemented Interfaces:
Serializable, Comparable<ReplayPolicy>, Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReplay only operations declared deterministic by the application.Never replay the invocation.Replay only when an explicit idempotency key is present. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplayPolicyReturns the enum constant of this class with the specified name.static ReplayPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REPLAY
Never replay the invocation. -
DETERMINISTIC_ONLY
Replay only operations declared deterministic by the application. -
WHEN_IDEMPOTENCY_KEY_PRESENT
Replay only when an explicit idempotency key is present.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-