|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.routing.AbstractRouter
org.mule.routing.response.AbstractResponseRouter
public abstract class AbstractResponseRouter
AbstractResponseRouter
is a base class for all Response Routers
Field Summary | |
---|---|
protected Log |
logger
|
protected ExpressionEvaluator |
propertyExtractor
|
Fields inherited from class org.mule.routing.AbstractRouter |
---|
muleContext |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
AbstractResponseRouter()
|
Method Summary | |
---|---|
protected Object |
getCallResponseAggregateIdentifier(MuleMessage message)
Extracts a Group identifier from the current event. |
ExpressionEvaluator |
getPropertyExtractor()
|
protected Object |
getReplyAggregateIdentifier(MuleMessage message)
Extracts a 'Correlation Id' from a reply message. |
int |
getTimeout()
Returns the timeout delay that the response router should wait for a response for a given event. |
LifecycleTransitionResult |
initialise()
Method used to perform any initialisation work. |
boolean |
isFailOnTimeout()
Should the router fail and throw an exception if a timeout occurs or should it return the events received so far. |
void |
setFailOnTimeout(boolean failOnTimeout)
Should the router fail and throw an exception if a timeout occurs or should it return the events received so far. |
void |
setPropertyExtractor(ExpressionEvaluator propertyExtractor)
|
void |
setPropertyExtractorAsString(String className)
A digester callback to configure a custom correlation extractor. |
void |
setTimeout(int timeout)
Sets the timeout delay that the response router should wait for a response for a given event. |
Methods inherited from class org.mule.routing.AbstractRouter |
---|
dispose, getMuleContext, getRouterStatistics, setMuleContext, setRouterStatistics |
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.ResponseRouter |
---|
getResponse, process |
Methods inherited from interface org.mule.api.routing.Router |
---|
getRouterStatistics, setRouterStatistics |
Methods inherited from interface org.mule.api.lifecycle.Disposable |
---|
dispose |
Field Detail |
---|
protected final Log logger
protected ExpressionEvaluator propertyExtractor
Constructor Detail |
---|
public AbstractResponseRouter()
Method Detail |
---|
public LifecycleTransitionResult initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise
in interface Initialisable
initialise
in class AbstractRouter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic ExpressionEvaluator getPropertyExtractor()
public void setPropertyExtractor(ExpressionEvaluator propertyExtractor)
public void setPropertyExtractorAsString(String className)
className
- correlation extractor fully qualified class namepublic int getTimeout()
ResponseRouter
getTimeout
in interface ResponseRouter
public void setTimeout(int timeout)
ResponseRouter
setTimeout
in interface ResponseRouter
timeout
- the time in milliseconds to wait for a response eventprotected Object getReplyAggregateIdentifier(MuleMessage message)
message
- a received reply message
protected Object getCallResponseAggregateIdentifier(MuleMessage message)
message
- A response messages received on the response router endpoint
public boolean isFailOnTimeout()
ResponseRouter
isFailOnTimeout
in interface ResponseRouter
public void setFailOnTimeout(boolean failOnTimeout)
ResponseRouter
setFailOnTimeout
in interface ResponseRouter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |