Package io.github.resilience4j.retrofit
Class RetrofitCircuitBreaker.CircuitBreakingCall<T>
- java.lang.Object
-
- io.github.resilience4j.retrofit.internal.DecoratedCall<T>
-
- io.github.resilience4j.retrofit.RetrofitCircuitBreaker.CircuitBreakingCall<T>
-
- All Implemented Interfaces:
java.lang.Cloneable,retrofit2.Call<T>
- Enclosing interface:
- RetrofitCircuitBreaker
public static class RetrofitCircuitBreaker.CircuitBreakingCall<T> extends DecoratedCall<T>
-
-
Constructor Summary
Constructors Constructor Description CircuitBreakingCall(retrofit2.Call<T> call, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, java.util.function.Predicate<retrofit2.Response> responseSuccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description retrofit2.Call<T>clone()voidenqueue(retrofit2.Callback<T> callback)retrofit2.Response<T>execute()-
Methods inherited from class io.github.resilience4j.retrofit.internal.DecoratedCall
cancel, isCanceled, isExecuted, request
-
-
-
-
Constructor Detail
-
CircuitBreakingCall
public CircuitBreakingCall(retrofit2.Call<T> call, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, java.util.function.Predicate<retrofit2.Response> responseSuccess)
-
-
Method Detail
-
enqueue
public void enqueue(retrofit2.Callback<T> callback)
- Specified by:
enqueuein interfaceretrofit2.Call<T>- Overrides:
enqueuein classDecoratedCall<T>
-
execute
public retrofit2.Response<T> execute() throws java.io.IOException
- Specified by:
executein interfaceretrofit2.Call<T>- Overrides:
executein classDecoratedCall<T>- Throws:
java.io.IOException
-
clone
public retrofit2.Call<T> clone()
- Specified by:
clonein interfaceretrofit2.Call<T>- Specified by:
clonein classDecoratedCall<T>
-
-