ActionRetryPolicy

Retry policy selector for an action.

This is the first-priority override for retry behavior on an {@link com.embabel.agent.api.annotation.Action} or {@link com.embabel.agent.api.annotation.Agent}. The underlying policy maps to {@link ActionQos} with the following default properties: max-attempts: int = 5 backoff-millis: long = 10000 backoff-multiplier: double = 5.0 backoff-maxInterval: long = 60000 idempotent: boolean = false To override with a custom policy, see actionRetryPolicyExpression on {@link com.embabel.agent.api.annotation.Action} or {@link com.embabel.agent.api.annotation.Agent}.

Entries

Link copied to clipboard

Fire only once: maps to {@link ActionQos} with maxAttempts = 1.

Link copied to clipboard

Default retry policy: uses the default {@link ActionQos}. Note that using this retry policy explicitly will not override any custom retry policy provided at any level, even if that custom retry policy is at a lower precedence than the one annotated with this retry policy.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.