org.apache.camel.component.routebox.strategy
Interface RouteboxDispatchStrategy


public interface RouteboxDispatchStrategy

A strategy for identifying the route consumer in the routebox where the exchange should to be dispatched


Method Summary
 URI selectDestinationUri(List<URI> destinations, org.apache.camel.Exchange exchange)
          Receives an incoming exchange and consumer list and identifies the inner route consumer for dispatching the exchange
 

Method Detail

selectDestinationUri

URI selectDestinationUri(List<URI> destinations,
                         org.apache.camel.Exchange exchange)
                         throws Exception
Receives an incoming exchange and consumer list and identifies the inner route consumer for dispatching the exchange

Parameters:
destinations - the list of possible real-time inner route consumers available to where the exchange can be dispatched in the routebox
exchange - the incoming exchange
Returns:
a selected consumer to whom the exchange can be directed
Throws:
Exception - is thrown if error


Apache CAMEL