org.apache.servicemix.jbi.nmr.flow.st
Class STFlow

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.jbi.nmr.flow.AbstractFlow
          extended by 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 $

Field Summary
 
Fields inherited from class org.apache.servicemix.jbi.nmr.flow.AbstractFlow
broker, executorFactory, log
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
STFlow()
           
 
Method Summary
 boolean canHandle(javax.jbi.messaging.MessageExchange me)
          Check if the flow can support the requested QoS for this exchange
protected  void doSend(MessageExchangeImpl me)
          Distribute an ExchangePacket
 String getDescription()
          The type of Flow
 
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
 

Constructor Detail

STFlow

public STFlow()
Method Detail

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.