org.mule.routing.correlation
Class EventCorrelator
java.lang.Object
org.mule.routing.correlation.EventCorrelator
public class EventCorrelator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient Log logger
- logger used by this class
NO_CORRELATION_ID
public static final String NO_CORRELATION_ID
- See Also:
- Constant Field Values
MAX_PROCESSED_GROUPS
public static final int MAX_PROCESSED_GROUPS
- See Also:
- Constant Field Values
MILLI_TO_NANO_MULTIPLIER
protected static final long MILLI_TO_NANO_MULTIPLIER
- See Also:
- Constant Field Values
groupTimeToLive
protected long groupTimeToLive
eventGroups
protected final edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap eventGroups
- A map of EventGroup objects. These represent one or more messages to be
agregated, keyed by message id. There will be one response message for every
EventGroup.
groupsLock
protected final Object groupsLock
processedGroups
protected final BoundedFifoBuffer processedGroups
EventCorrelator
public EventCorrelator(EventCorrelatorCallback callback,
MessageProcessor timeoutMessageProcessor,
MessageInfoMapping messageInfoMapping,
MuleContext muleContext)
enableTimeoutMonitor
public void enableTimeoutMonitor()
throws javax.resource.spi.work.WorkException
- Throws:
javax.resource.spi.work.WorkException
forceGroupExpiry
public void forceGroupExpiry(String groupId)
process
public MuleEvent process(MuleEvent event)
throws RoutingException
- Throws:
RoutingException
getEventGroup
protected EventGroup getEventGroup(String groupId)
addEventGroup
protected EventGroup addEventGroup(EventGroup group)
removeEventGroup
protected void removeEventGroup(EventGroup group)
addProcessedGroup
protected void addProcessedGroup(Object id)
isGroupAlreadyProcessed
protected boolean isGroupAlreadyProcessed(Object id)
isFailOnTimeout
public boolean isFailOnTimeout()
setFailOnTimeout
public void setFailOnTimeout(boolean failOnTimeout)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
handleGroupExpiry
protected void handleGroupExpiry(EventGroup group)
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.