public interface InvokeOnHeaderStrategy
InvokeOnHeader.
Camel provides source code generated strategies via the camel maven tooling.
InvokeOnHeader| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object target,
String key,
Exchange exchange,
AsyncCallback callback)
Invoke the method based on the header key
|
Object invoke(Object target, String key, Exchange exchange, AsyncCallback callback) throws Exception
target - the target such as a producer extending HeaderSelectorProducerkey - the header keyexchange - the exchangecallback - the async callbackException - is thrown if error invoking the method.Apache Camel