Package org.apache.camel.support
Class AsyncProcessorHelper
- java.lang.Object
-
- org.apache.camel.support.AsyncProcessorHelper
-
public final class AsyncProcessorHelper extends Object
Helper methods forAsyncProcessor
objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
process
public static void process(org.apache.camel.AsyncProcessor processor, org.apache.camel.Exchange exchange) throws Exception
Calls the async version of the processor's process method and waits for it to complete before returning. This can be used byAsyncProcessor
objects to implement their sync version of the process method. Important: This method is discouraged to be used, as its better to invoke the asynchronousAsyncProcessor.process(org.apache.camel.Exchange, org.apache.camel.AsyncCallback)
method, whenever possible.- Parameters:
processor
- the processorexchange
- the exchange- Throws:
Exception
- can be thrown if waiting is interrupted
-
-