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 class  RetrofitRetry.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)
    Decorate Calls allow Retry functionality.
  • Method Details

    • decorateCall

      static <T> retrofit2.Call<T> decorateCall​(io.github.resilience4j.retry.Retry retry, retrofit2.Call<T> call)
      Decorate Calls allow Retry functionality.
      Parameters:
      retry - Retry to apply
      call - Call to decorate
      Returns:
      Original Call decorated with Retry