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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static InvocationRetryPolicy.OnMaxAttempts[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
-