[
https://issues.apache.org/jira/browse/CAMEL-10286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-10286.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Thanks for the PR.
Mind about checkstyle errors for new patches
http://camel.apache.org/building
> Allow async bean method in bean language with J8 CompletableFuture
> ------------------------------------------------------------------
>
> Key: CAMEL-10286
> URL: https://issues.apache.org/jira/browse/CAMEL-10286
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Vitalii Tymchyshyn
> Assignee: Claus Ibsen
> Fix For: 2.18.0
>
>
> Allow easy creation of asyncrhonous methods called from bean language.
> Proposed solution is to allow such methods to return CompletableFuture.
> Such return would automatically be treated as async invocation.
> Non-null result will be used as resulting body.
> Any async exception will be propagated to proper error handling.
> Note that if CompletableFuture would return null, it won't be used as
> resulting body. Rather resulting body will not be changed. It would help in
> use cases when processing method just does some work and returns
> CompletableFuture<Void>.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)