Package io.github.resilience4j.fallback
Interface FallbackDecorator
-
- All Known Implementing Classes:
CompletionStageFallbackDecorator,DefaultFallbackDecorator,ReactorFallbackDecorator,RxJava2FallbackDecorator
public interface FallbackDecoratorinterface of FallbackDecorator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.vavr.CheckedFunction0<java.lang.Object>decorate(FallbackMethod fallbackMethod, io.vavr.CheckedFunction0<java.lang.Object> supplier)booleansupports(java.lang.Class<?> target)
-
-
-
Method Detail
-
supports
boolean supports(java.lang.Class<?> target)
-
decorate
io.vavr.CheckedFunction0<java.lang.Object> decorate(FallbackMethod fallbackMethod, io.vavr.CheckedFunction0<java.lang.Object> supplier)
- Parameters:
fallbackMethod- fallback method.supplier- target function should be decorated.- Returns:
- decorated function
-
-