Class RetrofitRateLimiter.RateLimitingCall<T>

java.lang.Object
io.github.resilience4j.retrofit.internal.DecoratedCall<T>
io.github.resilience4j.retrofit.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)  
  • Method Summary

    Modifier and Type Method Description
    retrofit2.Call<T> clone()  
    void enqueue​(retrofit2.Callback<T> callback)  
    retrofit2.Response<T> execute()  

    Methods inherited from class io.github.resilience4j.retrofit.internal.DecoratedCall

    cancel, isCanceled, isExecuted, request

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RateLimitingCall

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

    • 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>