rangoy commented on PR #8646:
URL: https://github.com/apache/camel/pull/8646#issuecomment-1325250672

   > I would assume future get is available during whenComplete is called
   
   I finally got to this again. For some reason I did not get that to work last 
time, but this seems to work as intended. I guess parsing of the status value 
can be left for the consumer. 
   
   ```
     future.whenComplete((o, throwable) -> {
                           final DefaultMessage newMessage = new 
DefaultMessage(exchange);
                           newMessage.setBody(o);
                           exchange.setMessage(newMessage);
                           async.done(false);
                       }
               );
               return false;
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to