org.mule.routing.inbound
Class SelectiveConsumer

java.lang.Object
  extended byorg.mule.routing.inbound.SelectiveConsumer
All Implemented Interfaces:
UMOInboundRouter, UMORouter
Direct Known Subclasses:
AbstractEventAggregator, AbstractEventResequencer, ForwardingConsumer, IdempotentReceiver, InboundPassThroughRouter

public class SelectiveConsumer
extends java.lang.Object
implements UMOInboundRouter

SelectiveConsumer is an inbound router used to filter out unwanted events. The filtering is performed by a UMOFilter that can be set on the router. If the event does not match the filter a UMOROutnerCatchAllStrategy can be set on this router to route unwanted events. If a catch strategy is not set the router just returns null.

Version:
$Revision: 1.3 $
Author:
Ross Mason

Field Summary
protected  Log logger
          logger used by this class
 
Constructor Summary
SelectiveConsumer()
           
 
Method Summary
 UMOFilter getFilter()
           
 RouterStatistics getRouterStatistics()
           
 boolean isMatch(UMOEvent event)
           
 boolean isTransformFirst()
           
 UMOEvent[] process(UMOEvent event)
           
 void setFilter(UMOFilter filter)
           
 void setRouterStatistics(RouterStatistics stats)
           
 void setTransformFirst(boolean transformFirst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class

Constructor Detail

SelectiveConsumer

public SelectiveConsumer()
Method Detail

isMatch

public boolean isMatch(UMOEvent event)
                throws MessagingException
Specified by:
isMatch in interface UMOInboundRouter
Throws:
MessagingException

process

public UMOEvent[] process(UMOEvent event)
                   throws MessagingException
Specified by:
process in interface UMOInboundRouter
Throws:
MessagingException

getFilter

public UMOFilter getFilter()

setFilter

public void setFilter(UMOFilter filter)

isTransformFirst

public boolean isTransformFirst()

setTransformFirst

public void setTransformFirst(boolean transformFirst)

setRouterStatistics

public void setRouterStatistics(RouterStatistics stats)
Specified by:
setRouterStatistics in interface UMORouter

getRouterStatistics

public RouterStatistics getRouterStatistics()
Specified by:
getRouterStatistics in interface UMORouter


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.