org.apache.camel
Interface AsyncProcessor

All Superinterfaces:
Processor

public interface AsyncProcessor
extends Processor

An asynchronous processor which can process an Exchange in an asynchronous fashion and signal completion by invoking the AsyncCallback.

For example Producer can implmenet this interface to support real asynchronous non blocking when using the SendAsyncProcessor.

Version:
$Revision: 834165 $

Method Summary
 void process(Exchange exchange, AsyncCallback callback)
          Processes the message exchange
 
Methods inherited from interface org.apache.camel.Processor
process
 

Method Detail

process

void process(Exchange exchange,
             AsyncCallback callback)
             throws Exception
Processes the message exchange

Parameters:
exchange - the message exchange
callback - the callback to invoke when data has been received and the Exchange is ready to be continued routed.
Throws:
Exception - if an internal processing error has occurred.


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.