@Retention(value=RUNTIME) @Target(value=METHOD) public @interface InvokeOnHeader
AsyncCallback
.
A method is only asynchronously executed if the method has AsyncCallback
as a parameter. In this situation
then the method should not return a value (void). And its the responsible of the method to invoke
callback.done(false)when to continue routing. Synchronous methods can either be void or return a value. If a value is returned then the value will be set as the response body. The method accepts the following parameters:
Message.getHeader(String)
public abstract String value
Apache Camel