Package akka.javasdk
Interface Retries
public interface Retries
-
Method Summary
Modifier and TypeMethodDescription<T> T
Retry a given call with a maximum number of retries.<T> T
Retry a given call.<T> CompletionStage
<T> retryAsync
(Callable<CompletionStage<T>> call, int maxRetries) Retry a given call with a maximum number of retries.<T> CompletionStage
<T> retryAsync
(Callable<CompletionStage<T>> call, akka.pattern.RetrySettings retrySettings) Retry a given call.
-
Method Details
-
retryAsync
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 retrymaxRetries
- 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 retryretrySettings
- The retry settings
-
retry
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 retrymaxRetries
- The number of retries to make
-
retry
Retry a given call.- Parameters:
call
- The call to retryretrySettings
- The retry settings
-