简体   繁体   中英

Spring Integration CallBack Methods

Reading the Spring Integration samples, came a doubt in my mind.

I have a small application that given a scenario, a result from an "Integration Flow" is necessary to update a "result" in a "future".

Reading the MathServiceGateway sample didn't clarified too much.

Does anyone have a suggestion for a "call back" like functions, the Channel Interceptor seems to be a next promise, but an async computation fits better on the scenario for "requests-response" (WebClient - Service - Spring Integration - Get Response) like the caller remains on hold until the Integration Flow finishes.

The Idea is to retrieve a result from a computation executed inside the Spring Integration.

Regards.

Please, see the Reference Manual on the matter.

You don't need to worry about any callback or some manual setting to the Future<?> . According to the Spring Integration Gateway component logic everything is done for you by Framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM