Package io.github.resilience4j.retrofit
Class RetryCallAdapter
java.lang.Object
retrofit2.CallAdapter.Factory
io.github.resilience4j.retrofit.RetryCallAdapter
public final class RetryCallAdapter
extends retrofit2.CallAdapter.Factory
Creates a Retrofit
CallAdapter.Factory that decorates a Call to provide integration with Resilience4j-Retry}-
Method Summary
Modifier and Type Method Description retrofit2.CallAdapter<?,?>get(java.lang.reflect.Type returnType, java.lang.annotation.Annotation[] annotations, retrofit2.Retrofit retrofit)static RetryCallAdapterof(io.github.resilience4j.retry.Retry retry)Create a retry call adapter that decorates retrofit calls
-
Method Details
-
of
Create a retry call adapter that decorates retrofit calls- Returns:
- a
CallAdapter.Factorythat can be passed into theRetrofit.Builder
-
get
public retrofit2.CallAdapter<?,?> get(java.lang.reflect.Type returnType, java.lang.annotation.Annotation[] annotations, retrofit2.Retrofit retrofit)- Specified by:
getin classretrofit2.CallAdapter.Factory
-