Package io.servicetalk.client.api
Interface AutoRetryStrategyProvider.AutoRetryStrategy
-
- All Superinterfaces:
AsyncCloseable
,BiIntFunction<java.lang.Throwable,Completable>
- Enclosing interface:
- AutoRetryStrategyProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AutoRetryStrategyProvider.AutoRetryStrategy extends AsyncCloseable, BiIntFunction<java.lang.Throwable,Completable>
A strategy to use for automatic retries. Automatic retries are done by the clients automatically when allowed by the passedAutoRetryStrategyProvider
. These retries are not a substitute for user level retries which are designed to infer retry decisions based on request/error information. Typically such user level retries are done using protocol level filter but can also be done differently per request (eg: by usingSingle.retry(BiIntPredicate)
).
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Completable
closeAsync()
Used to close/shutdown a resource.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.concurrent.api.BiIntFunction
apply
-
-
-
-
Method Detail
-
closeAsync
default Completable closeAsync()
Description copied from interface:AsyncCloseable
Used to close/shutdown a resource.- Specified by:
closeAsync
in interfaceAsyncCloseable
- Returns:
- A
Completable
that is notified once the close is complete.
-
-