[ https://issues.apache.org/jira/browse/CAMEL-10286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-10286: -------------------------------- Component/s: camel-core > 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 > 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)