|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.util.AsyncProcessorHelper
public final class AsyncProcessorHelper
Helper methods for AsyncProcessor
objects.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 callback
public static void process(AsyncProcessor processor, Exchange exchange) throws Exception
AsyncProcessor
objects to implement their sync version of the process method.
processor
- the processorexchange
- the exchange
Exception
- can be thrown if waiting is interrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |