Interface GenericDecorator
- All Known Implementing Classes:
DefaultBulkheadProvider
,DefaultCachingDecorator
,DefaultCircuitBreakerProvider
,DefaultRateLimiterProvider
,DefaultRetryProvider
,DefaultTimeLimiterProvider
public interface GenericDecorator
Interface to decorate a function with resilient properties.
-
Method Summary
Modifier and TypeMethodDescription<T> Callable<T>
decorateCallable
(Callable<T> callable, ResilienceConfiguration configuration) Decorates the given callable to enable a resilient property.
-
Method Details
-
decorateCallable
@Nonnull <T> Callable<T> decorateCallable(@Nonnull Callable<T> callable, @Nonnull ResilienceConfiguration configuration) Decorates the given callable to enable a resilient property.- Type Parameters:
T
- The type of the callable.- Parameters:
configuration
- The configuration to be used.callable
- The callable to decorate.- Returns:
- The decorated callable.
-