Enum ActionRetryPolicy

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum ActionRetryPolicy
    extends Enum<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}.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIRE_ONCE

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

      DEFAULT

      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.

    • Method Summary

      Modifier and Type Method Description
      final ActionRetryPolicy valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<ActionRetryPolicy> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final EnumEntries<ActionRetryPolicy> getEntries() Retry policy selector for an action.
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final ActionRetryPolicy valueOf(String value)

        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.)

      • values

         final Array<ActionRetryPolicy> values()

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

        This method may be used to iterate over the constants.

      • getEntries

         final EnumEntries<ActionRetryPolicy> getEntries()

        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}.