org.mule.routing
Class AbstractCatchAllStrategy

java.lang.Object
  extended by org.mule.routing.AbstractCatchAllStrategy
All Implemented Interfaces:
RouterCatchAllStrategy
Direct Known Subclasses:
ForwardingCatchAllStrategy, LoggingCatchAllStrategy, ServiceCatchAllStrategy

public abstract class AbstractCatchAllStrategy
extends Object
implements RouterCatchAllStrategy

ForwardingCatchAllStrategy acts as a catch and forward router for any events not caught by the router this strategy is associated with. Users can assign an endpoint to this strategy to forward all events to. This is similar to a dead letter queue in messaging.


Field Summary
protected  OutboundEndpoint endpoint
           
protected  Log logger
          logger used by this class
protected  RouterStatistics statistics
           
 
Constructor Summary
AbstractCatchAllStrategy()
           
 
Method Summary
 OutboundEndpoint getEndpoint()
           
 RouterStatistics getStatistics()
           
 void setEndpoint(OutboundEndpoint endpoint)
           
 void setStatistics(RouterStatistics statistics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.routing.RouterCatchAllStrategy
catchMessage
 

Field Detail

logger

protected transient Log logger
logger used by this class


endpoint

protected OutboundEndpoint endpoint

statistics

protected RouterStatistics statistics
Constructor Detail

AbstractCatchAllStrategy

public AbstractCatchAllStrategy()
Method Detail

setEndpoint

public void setEndpoint(OutboundEndpoint endpoint)
Specified by:
setEndpoint in interface RouterCatchAllStrategy

getEndpoint

public OutboundEndpoint getEndpoint()
Specified by:
getEndpoint in interface RouterCatchAllStrategy

getStatistics

public RouterStatistics getStatistics()

setStatistics

public void setStatistics(RouterStatistics statistics)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.