public final class AsyncProcessorHelper extends Object
AsyncProcessor objects.| Modifier and Type | Method and Description |
|---|---|
static void |
process(org.apache.camel.AsyncProcessor processor,
org.apache.camel.Exchange exchange)
Calls the async version of the processor's process method and waits
for it to complete before returning.
|
public static void process(org.apache.camel.AsyncProcessor processor,
org.apache.camel.Exchange exchange)
throws Exception
AsyncProcessor
objects to implement their sync version of the process method.
Important: This method is discouraged to be used, as its better to invoke the asynchronous
AsyncProcessor.process(org.apache.camel.Exchange, org.apache.camel.AsyncCallback) method, whenever possible.processor - the processorexchange - the exchangeException - can be thrown if waiting is interruptedApache Camel