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

All Known Subinterfaces:
FlowRegistry

public interface Flow

Since:
4.0
Version:
$Revision: $

Field Summary
static java.lang.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 java.lang.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-2009 The Apache Software Foundation. All Rights Reserved.