|
||||||||||
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 PropertyExtractor |
correlationExtractor
|
protected Log |
logger
|
Constructor Summary | |
---|---|
AbstractResponseRouter()
|
Method Summary | |
---|---|
protected Object |
getCallResponseAggregateIdentifier(UMOMessage message)
Extracts a Group identifier from the current event. |
PropertyExtractor |
getCorrelationExtractor()
|
protected Object |
getReplyAggregateIdentifier(UMOMessage 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. |
boolean |
isFailOnTimeout()
Should the router fail and throw an exception if a timeout occurs or should it return the events received so far. |
void |
setCorrelationExtractor(PropertyExtractor correlationExtractor)
|
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 |
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 |
---|
getRouterStatistics, 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.umo.routing.UMOResponseRouter |
---|
getResponse, process |
Methods inherited from interface org.mule.umo.routing.UMORouter |
---|
getRouterStatistics, setRouterStatistics |
Field Detail |
---|
protected final Log logger
protected PropertyExtractor correlationExtractor
Constructor Detail |
---|
public AbstractResponseRouter()
Method Detail |
---|
public PropertyExtractor getCorrelationExtractor()
public void setCorrelationExtractor(PropertyExtractor correlationExtractor)
public void setPropertyExtractorAsString(String className)
className
- correlation extractor fully qualified class namepublic int getTimeout()
UMOResponseRouter
getTimeout
in interface UMOResponseRouter
public void setTimeout(int timeout)
UMOResponseRouter
setTimeout
in interface UMOResponseRouter
timeout
- the time in milliseconds to wait for a response eventprotected Object getReplyAggregateIdentifier(UMOMessage message)
message
- a received reply message
protected Object getCallResponseAggregateIdentifier(UMOMessage message)
message
- A response messages received on the response router endpoint
public boolean isFailOnTimeout()
UMOResponseRouter
isFailOnTimeout
in interface UMOResponseRouter
public void setFailOnTimeout(boolean failOnTimeout)
UMOResponseRouter
setFailOnTimeout
in interface UMOResponseRouter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |