Class CompletionStageFallbackDecorator

java.lang.Object
io.github.resilience4j.fallback.CompletionStageFallbackDecorator
All Implemented Interfaces:
FallbackDecorator

public class CompletionStageFallbackDecorator extends Object implements FallbackDecorator
fallbackMethod decorator for CompletionStage
  • Constructor Details

    • CompletionStageFallbackDecorator

      public CompletionStageFallbackDecorator()
  • Method Details

    • supports

      public boolean supports(Class<?> target)
      Specified by:
      supports in interface FallbackDecorator
    • decorate

      public io.github.resilience4j.core.functions.CheckedSupplier<Object> decorate(FallbackMethod fallbackMethod, io.github.resilience4j.core.functions.CheckedSupplier<Object> supplier)
      Specified by:
      decorate in interface FallbackDecorator
      Parameters:
      fallbackMethod - fallback method.
      supplier - target function should be decorated.
      Returns:
      decorated function