Class RetryStrategies.Presets

java.lang.Object
software.amazon.lambda.durable.retry.RetryStrategies.Presets
Enclosing class:
RetryStrategies

public static class RetryStrategies.Presets extends Object
Preset retry strategies for common use cases.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RetryStrategy
    Default retry strategy: - 6 total attempts (1 initial + 5 retries) - Initial delay: 5 seconds - Max delay: 60 seconds - Backoff rate: 2x - Jitter: FULL
    static final RetryStrategy
    Linear retry strategy: - 6 total attempts (1 initial + 5 retries) - Initial delay: 1 second - Max delay: 5 seconds - Increment: 1 second - Jitter: NONE
    static final RetryStrategy
    No retry strategy - fails immediately on first error.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT

      public static final RetryStrategy DEFAULT
      Default retry strategy: - 6 total attempts (1 initial + 5 retries) - Initial delay: 5 seconds - Max delay: 60 seconds - Backoff rate: 2x - Jitter: FULL
    • LINEAR

      public static final RetryStrategy LINEAR
      Linear retry strategy: - 6 total attempts (1 initial + 5 retries) - Initial delay: 1 second - Max delay: 5 seconds - Increment: 1 second - Jitter: NONE
    • NO_RETRY

      public static final RetryStrategy NO_RETRY
      No retry strategy - fails immediately on first error. Use this for operations that should not be retried.
  • Constructor Details

    • Presets

      public Presets()