Class FallbackDecorators

java.lang.Object
io.github.resilience4j.fallback.FallbackDecorators

public class FallbackDecorators extends Object
  • Constructor Details

  • Method Details

    • decorate

      public io.github.resilience4j.core.functions.CheckedSupplier<Object> decorate(FallbackMethod fallbackMethod, io.github.resilience4j.core.functions.CheckedSupplier<Object> supplier)
      find a FallbackDecorator by return type of the FallbackMethod and decorate supplier
      Parameters:
      fallbackMethod - fallback method that handles supplier's exception
      supplier - original function
      Returns:
      a function which is decorated by a FallbackMethod
    • getFallbackDecorators

      public List<FallbackDecorator> getFallbackDecorators()