Class DecoratedCall<T>
java.lang.Object
io.github.resilience4j.retrofit.internal.DecoratedCall<T>
- Type Parameters:
T- Call parameter type
- All Implemented Interfaces:
java.lang.Cloneable,retrofit2.Call<T>
- Direct Known Subclasses:
RetrofitCircuitBreaker.CircuitBreakingCall,RetrofitRateLimiter.RateLimitingCall,RetrofitRetry.RetryCall
public abstract class DecoratedCall<T>
extends java.lang.Object
implements retrofit2.Call<T>
Simple decorator class that implements Call<T> and delegates all calls the the Call
instance provided in the constructor. Methods can be overridden as required.
-
Constructor Summary
Constructors Constructor Description DecoratedCall(retrofit2.Call<T> call) -
Method Summary
Modifier and Type Method Description voidcancel()abstract retrofit2.Call<T>clone()voidenqueue(retrofit2.Callback<T> callback)retrofit2.Response<T>execute()booleanisCanceled()booleanisExecuted()okhttp3.Requestrequest()
-
Constructor Details
-
Method Details
-
execute
- Specified by:
executein interfaceretrofit2.Call<T>- Throws:
java.io.IOException
-
enqueue
- Specified by:
enqueuein interfaceretrofit2.Call<T>
-
isExecuted
public boolean isExecuted()- Specified by:
isExecutedin interfaceretrofit2.Call<T>
-
cancel
public void cancel()- Specified by:
cancelin interfaceretrofit2.Call<T>
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceretrofit2.Call<T>
-
clone
- Specified by:
clonein interfaceretrofit2.Call<T>- Overrides:
clonein classjava.lang.Object
-
request
public okhttp3.Request request()- Specified by:
requestin interfaceretrofit2.Call<T>
-