|
||||||||||
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)
Deprecated. should no longer be needed, instead invoke the process method on the AsyncProcessor directly,
instead of using this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static boolean process(AsyncProcessor processor, Exchange exchange, AsyncCallback callback)
AsyncProcessor
directly,
instead of using this method.
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.
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 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 |