Interface GenericDecorator

All Known Implementing Classes:
DefaultBulkheadProvider, DefaultCachingDecorator, DefaultCircuitBreakerProvider, DefaultRateLimiterProvider, DefaultRetryProvider, DefaultTimeLimiterProvider

public interface GenericDecorator
Interface to decorate a function with resilient properties.
  • 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.