Enum Class RetryPolicyProperties.OnMaxAttempts

java.lang.Object
java.lang.Enum<RetryPolicyProperties.OnMaxAttempts>
dev.restate.sdk.springboot.RetryPolicyProperties.OnMaxAttempts
All Implemented Interfaces:
Serializable, Comparable<RetryPolicyProperties.OnMaxAttempts>, Constable
Enclosing class:
RetryPolicyProperties

public static enum RetryPolicyProperties.OnMaxAttempts extends Enum<RetryPolicyProperties.OnMaxAttempts>
Behavior when retry policy reaches RetryPolicyProperties.getMaxAttempts() attempts.
  • Enum Constant Details

    • PAUSE

      public static final RetryPolicyProperties.OnMaxAttempts PAUSE
      Pause the invocation once retries are exhausted. The invocation enters the paused state and can be manually resumed from the CLI or UI.
    • KILL

      public static final RetryPolicyProperties.OnMaxAttempts KILL
      Kill the invocation once retries are exhausted. The invocation will be marked as failed and will not be retried unless explicitly re-triggered by the caller.
  • Method Details

    • values

      public static RetryPolicyProperties.OnMaxAttempts[] 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 RetryPolicyProperties.OnMaxAttempts 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