Package akka.javasdk

Interface Retries


public interface Retries
  • Method Details

    • retryAsync

      <T> CompletionStage<T> retryAsync(Callable<CompletionStage<T>> call, int maxRetries)
      Retry a given call with a maximum number of retries. A predefined backoff strategy will be calculated based on the number of maxRetries.
      Parameters:
      call - The call to retry
      maxRetries - The number of retries to make
    • retryAsync

      <T> CompletionStage<T> retryAsync(Callable<CompletionStage<T>> call, akka.pattern.RetrySettings retrySettings)
      Retry a given call.
      Parameters:
      call - The call to retry
      retrySettings - The retry settings
    • retry

      <T> T retry(Callable<T> call, int maxRetries)
      Retry a given call with a maximum number of retries. A predefined backoff strategy will be calculated based on the number of maxRetries.
      Parameters:
      call - The call to retry
      maxRetries - The number of retries to make
    • retry

      <T> T retry(Callable<T> call, akka.pattern.RetrySettings retrySettings)
      Retry a given call.
      Parameters:
      call - The call to retry
      retrySettings - The retry settings