Package io.github.resilience4j.retrofit
Interface RetrofitRetry
public interface RetrofitRetry
Decorates a Retrofit
Call to inform a Retry when an retryOnResults matches and retryExceptions are thrown.
All exceptions are marked as errors or responses not matching the supplied predicate.
For example:
RetrofitRetry.decorateCall(retry, call);
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRetrofitRetry.RetryCall<T> -
Method Summary
Static Methods Modifier and Type Method Description static <T> retrofit2.Call<T>decorateCall(io.github.resilience4j.retry.Retry retry, retrofit2.Call<T> call)DecorateCalls allow Retry functionality.
-
Method Details
-
decorateCall
static <T> retrofit2.Call<T> decorateCall(io.github.resilience4j.retry.Retry retry, retrofit2.Call<T> call)DecorateCalls allow Retry functionality.- Parameters:
retry- Retry to applycall- Call to decorate- Returns:
- Original Call decorated with Retry
-