|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.routing.EventCorrelator
public class EventCorrelator
Field Summary | |
---|---|
protected edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap |
eventGroups
A map of EventGroup objects. |
protected Object |
groupsLock
|
protected edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap |
locks
A map of locks used to wait for response messages for a given message id |
protected Log |
logger
logger used by this class |
static int |
MAX_PROCESSED_GROUPS
|
protected static long |
MILLI_TO_NANO_MULTIPLIER
|
static String |
NO_CORRELATION_ID
|
protected BoundedFifoBuffer |
processedGroups
|
protected edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap |
responseMessages
The collection of messages that are ready to be returned to the callee. |
Constructor Summary | |
---|---|
EventCorrelator(EventCorrelatorCallback callback,
MessageInfoMapping messageInfoMapping,
MuleContext context)
|
Method Summary | |
---|---|
void |
addEvent(MuleEvent event)
|
protected EventGroup |
addEventGroup(EventGroup group)
|
protected void |
addProcessedGroup(Object id)
|
void |
enableTimeoutMonitor()
|
protected EventGroup |
getEventGroup(Object groupId)
|
MuleMessage |
getResponse(MuleMessage message)
This method is called by the responding callee thread and should return the aggregated response message |
MuleMessage |
getResponse(MuleMessage message,
int timeout)
This method is called by the responding callee thread and should return the aggregated response message |
Map |
getResponseMessages()
Deprecated. this is used by a test, but I would like to remove this method |
int |
getTimeout()
|
boolean |
isFailOnTimeout()
|
protected boolean |
isGroupAlreadyProcessed(Object id)
|
MuleMessage |
process(MuleEvent event)
|
protected void |
removeEventGroup(EventGroup group)
|
void |
setFailOnTimeout(boolean failOnTimeout)
|
void |
setTimeout(int timeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final transient Log logger
public static final String NO_CORRELATION_ID
public static final int MAX_PROCESSED_GROUPS
protected static final long MILLI_TO_NANO_MULTIPLIER
protected final edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap eventGroups
protected final edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap locks
protected final edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap responseMessages
protected final Object groupsLock
protected final BoundedFifoBuffer processedGroups
Constructor Detail |
---|
public EventCorrelator(EventCorrelatorCallback callback, MessageInfoMapping messageInfoMapping, MuleContext context)
Method Detail |
---|
public void enableTimeoutMonitor() throws javax.resource.spi.work.WorkException
javax.resource.spi.work.WorkException
public Map getResponseMessages()
public MuleMessage process(MuleEvent event) throws RoutingException
RoutingException
public void addEvent(MuleEvent event) throws RoutingException
RoutingException
protected EventGroup getEventGroup(Object groupId)
protected EventGroup addEventGroup(EventGroup group)
protected void removeEventGroup(EventGroup group)
protected void addProcessedGroup(Object id)
protected boolean isGroupAlreadyProcessed(Object id)
public MuleMessage getResponse(MuleMessage message) throws RoutingException
message
-
RoutingException
public MuleMessage getResponse(MuleMessage message, int timeout) throws RoutingException
message
-
RoutingException
public boolean isFailOnTimeout()
public void setFailOnTimeout(boolean failOnTimeout)
public int getTimeout()
public void setTimeout(int timeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |