org.mule.routing.response
Class AbstractResponseRouter
java.lang.Object
org.mule.routing.AbstractRouter
org.mule.routing.response.AbstractResponseRouter
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, ResponseRouter, Router
- Direct Known Subclasses:
- AbstractResponseAggregator
public abstract class AbstractResponseRouter
- extends AbstractRouter
- implements ResponseRouter
AbstractResponseRouter
is a base class for all Response Routers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
propertyExtractor
protected PropertyExtractor propertyExtractor
AbstractResponseRouter
public AbstractResponseRouter()
getPropertyExtractor
public PropertyExtractor getPropertyExtractor()
setPropertyExtractor
public void setPropertyExtractor(PropertyExtractor propertyExtractor)
setPropertyExtractorAsString
public void setPropertyExtractorAsString(String className)
- A digester callback to configure a custom correlation extractor.
- Parameters:
className
- correlation extractor fully qualified class name
getTimeout
public int getTimeout()
- Description copied from interface:
ResponseRouter
- Returns the timeout delay that the response router should wait for a response
for a given event. If the time expires and exception will be thrown by Mule.
- Specified by:
getTimeout
in interface ResponseRouter
- Returns:
- the time in milliseconds to wait for a response event
setTimeout
public void setTimeout(int timeout)
- Description copied from interface:
ResponseRouter
- Sets the timeout delay that the response router should wait for a response for
a given event. If the time expires and exception will be thrown by Mule.
- Specified by:
setTimeout
in interface ResponseRouter
- Parameters:
timeout
- the time in milliseconds to wait for a response event
getReplyAggregateIdentifier
protected Object getReplyAggregateIdentifier(MuleMessage message)
- Extracts a 'Correlation Id' from a reply message. The correlation Id does not
have to be the Message Correlation Id. It can be extracted from the message
payload if desired.
- Parameters:
message
- a received reply message
- Returns:
- the correlation Id for this message
getCallResponseAggregateIdentifier
protected Object getCallResponseAggregateIdentifier(MuleMessage message)
- Extracts a Group identifier from the current event. When an event is received
with a group identifier not registered with this router, a new group is
created. The id returned here can be a correlationId or some custom
aggregation Id. This implementation uses the Unique Message Id of the
MuleMessage being returned a
- Parameters:
message
- A response messages received on the response router endpoint
- Returns:
- an aggregation Id for this event
isFailOnTimeout
public boolean isFailOnTimeout()
- Description copied from interface:
ResponseRouter
- Should the router fail and throw an exception if a timeout occurs or should it return
the events received so far.
//TODO This method is not implemented yet
- Specified by:
isFailOnTimeout
in interface ResponseRouter
- Returns:
setFailOnTimeout
public void setFailOnTimeout(boolean failOnTimeout)
- Description copied from interface:
ResponseRouter
- Should the router fail and throw an exception if a timeout occurs or should it return
the events received so far.
//TODO This method is not implemented yet
- Specified by:
setFailOnTimeout
in interface ResponseRouter
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.