Enum Class InvocationRetryPolicy.OnMaxAttempts

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

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

    • PAUSE

      public static final InvocationRetryPolicy.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 InvocationRetryPolicy.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 InvocationRetryPolicy.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 InvocationRetryPolicy.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