public class DefaultRetryProvider extends Object implements RetryProvider, GenericDecorator
Constructor and Description |
---|
DefaultRetryProvider() |
Modifier and Type | Method and Description |
---|---|
<T> Callable<T> |
decorateCallable(Callable<T> callable,
ResilienceConfiguration configuration)
Decorates the given callable to enable a resilient property.
|
io.github.resilience4j.retry.Retry |
getRetry(ResilienceConfiguration configuration)
Provides a retry.
|
@Nonnull public io.github.resilience4j.retry.Retry getRetry(@Nonnull ResilienceConfiguration configuration)
getRetry
in interface RetryProvider
configuration
- The configuration for constructing the retry.@Nonnull public <T> Callable<T> decorateCallable(@Nonnull Callable<T> callable, @Nonnull ResilienceConfiguration configuration)
decorateCallable
in interface GenericDecorator
T
- The type of the callable.callable
- The callable to decorate.configuration
- The configuration to be used.Copyright © 2021 SAP SE. All rights reserved.