org.apache.camel.processor
Class ExchangePatternProcessor

java.lang.Object
  extended by org.apache.camel.processor.ExchangePatternProcessor
All Implemented Interfaces:
AsyncProcessor, Processor

public class ExchangePatternProcessor
extends Object
implements AsyncProcessor


Constructor Summary
ExchangePatternProcessor()
           
ExchangePatternProcessor(ExchangePattern ep)
           
 
Method Summary
 void process(Exchange exchange)
          Processes the message exchange
 boolean process(Exchange exchange, AsyncCallback callback)
          Processes the message exchange.
 void setExchangePattern(ExchangePattern ep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExchangePatternProcessor

public ExchangePatternProcessor()

ExchangePatternProcessor

public ExchangePatternProcessor(ExchangePattern ep)
Method Detail

setExchangePattern

public void setExchangePattern(ExchangePattern ep)

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Throws:
Exception - if an internal processing error has occurred.

process

public boolean process(Exchange exchange,
                       AsyncCallback callback)
Description copied from interface: AsyncProcessor
Processes the message exchange. Similar to Processor.process(org.apache.camel.Exchange), but the caller supports having the exchange asynchronously processed.

Specified by:
process in interface AsyncProcessor
Parameters:
exchange - the Exchange to process
callback - the AsyncCallback will be invoked when the processing of the exchange is completed. If the exchange is completed synchronously, then the callback is also invoked synchronously. The callback should therefore be careful of starting recursive loop.
Returns:
true if the processing was completed synchronously.


Copyright © 2008 IONA Open Source Community. All Rights Reserved.