Class FunctionAroundWrapper
java.lang.Object
org.springframework.cloud.function.context.catalog.FunctionAroundWrapper
- All Implemented Interfaces:
BiFunction<Object,
SimpleFunctionRegistry.FunctionInvocationWrapper, Object>
public abstract class FunctionAroundWrapper
extends Object
implements BiFunction<Object,SimpleFunctionRegistry.FunctionInvocationWrapper,Object>
Wrapper that acts as around advise over function invocation.
If registered as bean it will be autowired into
SimpleFunctionRegistry.FunctionInvocationWrapper
.
Keep in mind that it only affects imperative invocations where input is Message
NOTE: This API is experimental and and could change without notice. It is
intended for internal use only (e.g., spring-cloud-sleuth)- Since:
- 3.1
- Author:
- Oleg Zhurakousky
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
apply
(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction) protected abstract Object
doApply
(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
FunctionAroundWrapper
public FunctionAroundWrapper()
-
-
Method Details
-
apply
public final Object apply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction) - Specified by:
apply
in interfaceBiFunction<Object,
SimpleFunctionRegistry.FunctionInvocationWrapper, Object>
-
doApply
protected abstract Object doApply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)
-