public class EventCorrelator extends Object implements org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
| Modifier and Type | Field and Description |
|---|---|
protected Object |
groupsLock |
protected org.slf4j.Logger |
logger
logger used by this class
|
static String |
NO_CORRELATION_ID |
protected org.mule.runtime.api.store.ObjectStore<Long> |
processedGroups |
| Constructor and Description |
|---|
EventCorrelator(EventCorrelatorCallback callback,
Processor timeoutMessageProcessor,
MuleContext muleContext,
FlowConstruct flowConstruct,
PartitionableObjectStore correlatorStore,
String storePrefix,
org.mule.runtime.api.store.ObjectStore<Long> processedGroups) |
| Modifier and Type | Method and Description |
|---|---|
protected EventGroup |
addEventGroup(EventGroup group) |
protected void |
addProcessedGroup(Object id) |
void |
forceGroupExpiry(String groupId) |
protected EventGroup |
getEventGroup(Serializable groupId) |
protected String |
getEventGroupsPartitionKey() |
protected String |
getExpiredAndDispatchedPartitionKey() |
long |
getTimeout() |
protected void |
handleGroupExpiry(EventGroup group) |
boolean |
isFailOnTimeout() |
protected boolean |
isGroupAlreadyProcessed(Object id) |
Event |
process(Event event) |
protected void |
removeEventGroup(EventGroup group) |
void |
setFailOnTimeout(boolean failOnTimeout) |
void |
setTimeout(long timeout) |
void |
start() |
void |
stop() |
protected final transient org.slf4j.Logger logger
public static final String NO_CORRELATION_ID
protected final Object groupsLock
protected org.mule.runtime.api.store.ObjectStore<Long> processedGroups
public EventCorrelator(EventCorrelatorCallback callback, Processor timeoutMessageProcessor, MuleContext muleContext, FlowConstruct flowConstruct, PartitionableObjectStore correlatorStore, String storePrefix, org.mule.runtime.api.store.ObjectStore<Long> processedGroups)
public void forceGroupExpiry(String groupId) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic Event process(Event event) throws RoutingException
RoutingExceptionprotected EventGroup getEventGroup(Serializable groupId) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionprotected EventGroup addEventGroup(EventGroup group) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionprotected void removeEventGroup(EventGroup group) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionprotected void addProcessedGroup(Object id) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionprotected boolean isGroupAlreadyProcessed(Object id) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionpublic boolean isFailOnTimeout()
public void setFailOnTimeout(boolean failOnTimeout)
public long getTimeout()
public void setTimeout(long timeout)
protected void handleGroupExpiry(EventGroup group) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionprotected String getExpiredAndDispatchedPartitionKey()
protected String getEventGroupsPartitionKey()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.