Update WithAutomaticRetry to support RetryStrategy

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The RetryStrategy interface has been introduced as a standard interface for retryability. Since WithAutomaticRetry implement a retry mechanism, it should be able to work with the new RetryStrategy interface.

      To do so, a new withRetryStrategy builder method that calls into until and withBackoffBetweenIterations. Like AsyncTry::withRetryStrategy, callers will be required to return RetryStrategy::Result<T> from their provided callable in order to use WithAutomaticRetry::withRetryStrategy.

      A good example on how to use the retry strategies is in runWithRetryStrategy.

            Assignee:
            Jack Mulrow
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: