Class RetrofitRateLimiter.RateLimitingCall<T>

  • All Implemented Interfaces:
    java.lang.Cloneable, retrofit2.Call<T>
    Enclosing interface:
    RetrofitRateLimiter

    public static class RetrofitRateLimiter.RateLimitingCall<T>
    extends DecoratedCall<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      RateLimitingCall​(retrofit2.Call<T> call, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)  
    • Constructor Detail

      • RateLimitingCall

        public RateLimitingCall​(retrofit2.Call<T> call,
                                io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
    • Method Detail

      • enqueue

        public void enqueue​(retrofit2.Callback<T> callback)
        Specified by:
        enqueue in interface retrofit2.Call<T>
        Overrides:
        enqueue in class DecoratedCall<T>
      • execute

        public retrofit2.Response<T> execute()
                                      throws java.io.IOException
        Specified by:
        execute in interface retrofit2.Call<T>
        Overrides:
        execute in class DecoratedCall<T>
        Throws:
        java.io.IOException
      • clone

        public retrofit2.Call<T> clone()
        Specified by:
        clone in interface retrofit2.Call<T>
        Specified by:
        clone in class DecoratedCall<T>