Package io.github.resilience4j.fallback
Class FallbackDecorators
java.lang.Object
io.github.resilience4j.fallback.FallbackDecorators
FallbackDecorator
resolver-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.github.resilience4j.core.functions.CheckedSupplier<Object>
decorate
(FallbackMethod fallbackMethod, io.github.resilience4j.core.functions.CheckedSupplier<Object> supplier) find aFallbackDecorator
by return type of theFallbackMethod
and decorate supplier
-
Constructor Details
-
FallbackDecorators
-
-
Method Details
-
decorate
public io.github.resilience4j.core.functions.CheckedSupplier<Object> decorate(FallbackMethod fallbackMethod, io.github.resilience4j.core.functions.CheckedSupplier<Object> supplier) find aFallbackDecorator
by return type of theFallbackMethod
and decorate supplier- Parameters:
fallbackMethod
- fallback method that handles supplier's exceptionsupplier
- original function- Returns:
- a function which is decorated by a
FallbackMethod
-
getFallbackDecorators
-