You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vitalii Tymchyshyn (JIRA)" <ji...@apache.org> on 2016/09/04 19:02:20 UTC
[jira] [Created] (CAMEL-10286) Allow async bean method in bean
language with J8 CompletableFuture
Vitalii Tymchyshyn created CAMEL-10286:
------------------------------------------
Summary: 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
Reporter: Vitalii Tymchyshyn
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)