Interface FallbackDecorator

All Known Implementing Classes:
CompletionStageFallbackDecorator, DefaultFallbackDecorator, ReactorFallbackDecorator, RxJava2FallbackDecorator

public interface FallbackDecorator
interface of FallbackDecorator
  • Method Summary

    Modifier and Type
    Method
    Description
    io.github.resilience4j.core.functions.CheckedSupplier<Object>
    decorate(FallbackMethod fallbackMethod, io.github.resilience4j.core.functions.CheckedSupplier<Object> supplier)
     
    boolean
    supports(Class<?> target)
     
  • Method Details

    • supports

      boolean supports(Class<?> target)
    • decorate

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