Enum Class RetryPolicy

java.lang.Object
java.lang.Enum<RetryPolicy>
io.fluxzero.sdk.web.RetryPolicy
All Implemented Interfaces:
Serializable, Comparable<RetryPolicy>, Constable

public enum RetryPolicy extends Enum<RetryPolicy>
Determines when configured outbound HTTP retries are safe to execute.
  • Enum Constant Details

    • LEGACY

      public static final RetryPolicy LEGACY
      Preserves existing retry behavior for every method, including POST.
    • SAFE

      public static final RetryPolicy SAFE
      Retries HTTP-idempotent methods or requests carrying one nonblank Idempotency-Key header.
    • IDEMPOTENT

      public static final RetryPolicy IDEMPOTENT
      The application explicitly guarantees idempotent semantics for this request.
  • Method Details

    • values

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