Enum Class IdempotencyStatus

java.lang.Object
java.lang.Enum<IdempotencyStatus>
io.github.ravocode.avoonce.core.domain.IdempotencyStatus
All Implemented Interfaces:
Serializable, Comparable<IdempotencyStatus>, Constable

public enum IdempotencyStatus extends Enum<IdempotencyStatus>
Represents the lifecycle state of an idempotency request.
  • Enum Constant Details

    • STARTED

      public static final IdempotencyStatus STARTED
      The request is currently being processed by the system.
    • COMPLETED

      public static final IdempotencyStatus COMPLETED
      The request has been successfully processed, and a response is cached.
    • FAILED

      public static final IdempotencyStatus FAILED
      The request encountered an error or failed to process. Clients are usually allowed to retry in this state.
  • Method Details

    • values

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