Package io.github.resilience4j.feign
Interface FeignDecorator
- All Known Implementing Classes:
FeignDecorators
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used to decorate methods defined by feign interfaces. Decorators can be stacked, allowing
multiple Decorators to be combined. See
FeignDecorators.-
Method Summary
-
Method Details
-
decorate
io.github.resilience4j.core.functions.CheckedFunction<Object[],Object> decorate(io.github.resilience4j.core.functions.CheckedFunction<Object[], Object> invocationCall, Method method, feign.InvocationHandlerFactory.MethodHandler methodHandler, feign.Target<?> target) Decorates the invocation of a method defined by a feign interface.- Parameters:
invocationCall- represents the call to the method. This should be decorated by the implementing class.method- the method of the feign interface that is invoked.methodHandler- the feign methodHandler that executes the http request.- Returns:
- the decorated invocationCall
-