Package io.github.resilience4j.fallback
Class CompletionStageFallbackDecorator
- java.lang.Object
-
- io.github.resilience4j.fallback.CompletionStageFallbackDecorator
-
- All Implemented Interfaces:
FallbackDecorator
public class CompletionStageFallbackDecorator extends java.lang.Object implements FallbackDecorator
fallbackMethod decorator forCompletionStage
-
-
Constructor Summary
Constructors Constructor Description CompletionStageFallbackDecorator()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean supports(java.lang.Class<?> target)
- Specified by:
supportsin interfaceFallbackDecorator
-
decorate
public io.vavr.CheckedFunction0<java.lang.Object> decorate(FallbackMethod fallbackMethod, io.vavr.CheckedFunction0<java.lang.Object> supplier)
- Specified by:
decoratein interfaceFallbackDecorator- Parameters:
fallbackMethod- fallback method.supplier- target function should be decorated.- Returns:
- decorated function
-
-