Interface PostProcessingFunction<I,O>
- Type Parameters:
I- - input typeO- - output type
- All Superinterfaces:
Function<I,O>
Strategy for implementing function with post processing behavior.
The core framework only provides support for the post-processing behavior. The actual invocation of post-processing is left to the end user or the framework which integrates Spring Cloud Function. This is because post-processing can mean different things in different execution contexts. See
The core framework only provides support for the post-processing behavior. The actual invocation of post-processing is left to the end user or the framework which integrates Spring Cloud Function. This is because post-processing can mean different things in different execution contexts. See
postProcess(Message) method for more information.- Since:
- 4.0.3
- Author:
- Oleg Zhurakousky
-
Method Summary
Modifier and TypeMethodDescriptiondefault Odefault voidpostProcess(org.springframework.messaging.Message<O> result) Will post process the result of this's function invocation after this function has been triggered.
-
Method Details
-
apply
-
postProcess
Will post process the result of this's function invocation after this function has been triggered.
This operation is not managed/invoked by the core functionality of the Spring Cloud Function. It is specifically designed as a hook for other frameworks and extensions to invoke after this function was "triggered" and there is a requirement to do some post processing. The word "triggered" can mean different things in different execution contexts. For example, in spring-cloud-stream it means that the function has been invoked and the result of the function has been sent to the target destination. The boolean value argument - 'success' - allows the triggering framework to signal success or failure of its triggering operation whatever that may mean.- Parameters:
result- - the result of function invocation as an instance ofMessageincluding all the metadata as message headers.
-