org.apache.servicemix.jbi.nmr.flow.st
Class STFlow
java.lang.Object
org.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.nmr.flow.AbstractFlow
org.apache.servicemix.jbi.nmr.flow.st.STFlow
- All Implemented Interfaces:
- javax.jbi.management.LifeCycleMBean, MBeanInfoProvider, Flow
public class STFlow
- extends AbstractFlow
A simple Straight through flow.
A MessageExchange is routed straight to it's destination with
no staging or buffering. A straight through flow is best suited
for the cases where the ServiceMix JBIContainer is deployed with simple
flows (no state) or embedding, or where latency needs to be as low as possible.
- Version:
- $Revision: 564607 $
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Methods inherited from class org.apache.servicemix.jbi.nmr.flow.AbstractFlow |
doRouting, getAttributeInfos, getBroker, getExecutorFactory, getName, getType, init, isClustered, isPersistent, isSynchronous, isTransacted, resume, send, setName, shutDown, start, stop, suspend |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
firePropertyChanged, getCurrentState, getObjectToManage, getOperationInfos, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
getCurrentState |
STFlow
public STFlow()
doSend
protected void doSend(MessageExchangeImpl me)
throws javax.jbi.messaging.MessagingException
- Distribute an ExchangePacket
- Specified by:
doSend in class AbstractFlow
- Parameters:
packet -
- Throws:
javax.jbi.messaging.MessagingException
getDescription
public String getDescription()
- The type of Flow
- Returns:
- the type
canHandle
public boolean canHandle(javax.jbi.messaging.MessageExchange me)
- Check if the flow can support the requested QoS for this exchange
- Parameters:
me - the exchange to check
- Returns:
- true if this flow can handle the given exchange
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.