Package org.azd.abstractions.handlers
Class DefaultRetryHandler
java.lang.Object
org.azd.abstractions.handlers.DefaultRetryHandler
- All Implemented Interfaces:
RetryHandler
Retries the Api call based on Retry-After header value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<HttpResponse<T>>executeAsync(Retryable<T> operation) Executes the given retryable operation.
-
Constructor Details
-
DefaultRetryHandler
public DefaultRetryHandler()
-
-
Method Details
-
executeAsync
Executes the given retryable operation.- Specified by:
executeAsyncin interfaceRetryHandler- Type Parameters:
T- Typed value.- Parameters:
operation- Function to retry- Returns:
- Future of HttpResponse object
-