org.apache.servicemix.nmr.api.internal
Interface Flow

All Known Subinterfaces:
FlowRegistry
All Known Implementing Classes:
FlowRegistryImpl, StraightThroughFlow

public interface Flow

Since:
4.0
Version:
$Revision: $

Field Summary
static String ID
          Meta-data key for the unique flow identifier
 
Method Summary
 boolean canDispatch(InternalExchange exchange, InternalEndpoint endpoint)
          Check if this flow can be used to dispatch the given Exchange
 void dispatch(InternalExchange exchange)
          Dispatch the Exchange using this flow.
 

Field Detail

ID

static final String ID
Meta-data key for the unique flow identifier

See Also:
Constant Field Values
Method Detail

canDispatch

boolean canDispatch(InternalExchange exchange,
                    InternalEndpoint endpoint)
Check if this flow can be used to dispatch the given Exchange

Parameters:
exchange - the exchange to check
endpoint - the endpoint where the exchange is to be dispatched
Returns:
true if the flow can be used, false otherwise

dispatch

void dispatch(InternalExchange exchange)
Dispatch the Exchange using this flow.

Parameters:
exchange - the exchange to dispatch


Copyright © 2005-2012 FuseSource. All Rights Reserved.