public class FallbackDecorators
extends java.lang.Object
FallbackDecorator resolver| Constructor and Description |
|---|
FallbackDecorators(java.util.List<FallbackDecorator> fallbackDecorators) |
| Modifier and Type | Method and Description |
|---|---|
io.vavr.CheckedFunction0<java.lang.Object> |
decorate(FallbackMethod fallbackMethod,
io.vavr.CheckedFunction0<java.lang.Object> supplier)
find a
FallbackDecorator by return type of the FallbackMethod and decorate
supplier |
java.util.List<FallbackDecorator> |
getFallbackDecorators() |
public FallbackDecorators(java.util.List<FallbackDecorator> fallbackDecorators)
public io.vavr.CheckedFunction0<java.lang.Object> decorate(FallbackMethod fallbackMethod, io.vavr.CheckedFunction0<java.lang.Object> supplier)
FallbackDecorator by return type of the FallbackMethod and decorate
supplierfallbackMethod - fallback method that handles supplier's exceptionsupplier - original functionFallbackMethodpublic java.util.List<FallbackDecorator> getFallbackDecorators()