public final class AsyncProcessorHelper extends Object
AsyncProcessor
objects.Modifier and Type | Method and Description |
---|---|
static void |
process(AsyncProcessor processor,
Exchange exchange)
Calls the async version of the processor's process method and waits
for it to complete before returning.
|
static boolean |
process(AsyncProcessor processor,
Exchange exchange,
AsyncCallback callback)
Calls the async version of the processor's process method.
|
public static boolean process(AsyncProcessor processor, Exchange exchange, AsyncCallback callback)
Exchange
s which ensure those are run in a synchronous fashion.
See more details at AsyncProcessor
.processor
- the processorexchange
- the exchangecallback
- the callbackpublic static void process(AsyncProcessor processor, Exchange exchange) throws Exception
AsyncProcessor
objects to implement their sync version of the process method.processor
- the processorexchange
- the exchangeException
- can be thrown if waiting is interruptedApache Camel