public class AggregateMediator extends AbstractMediator implements ManagedLifecycle
trace, traceState
Constructor and Description |
---|
AggregateMediator() |
Modifier and Type | Method and Description |
---|---|
void |
completeAggregate(Aggregate aggregate)
Invoked by the Aggregate objects that are timed out, to signal timeout/completion of
itself
|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
Map |
getActiveAggregates() |
SynapseXPath |
getAggregationExpression() |
long |
getCompletionTimeoutMillis() |
SynapseXPath |
getCorrelateExpression() |
String |
getId() |
int |
getMaxMessagesToComplete() |
int |
getMinMessagesToComplete() |
SequenceMediator |
getOnCompleteSequence() |
String |
getOnCompleteSequenceRef() |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
mediate(MessageContext synCtx)
Aggregate messages flowing through this mediator according to the correlation criteria
and the aggregation algorithm specified to it
|
void |
setAggregationExpression(SynapseXPath aggregationExpression) |
void |
setCompletionTimeoutMillis(long completionTimeoutMillis) |
void |
setCorrelateExpression(SynapseXPath correlateExpression) |
void |
setId(String id) |
void |
setMaxMessagesToComplete(int maxMessagesToComplete) |
void |
setMinMessagesToComplete(int minMessagesToComplete) |
void |
setOnCompleteSequence(SequenceMediator onCompleteSequence) |
void |
setOnCompleteSequenceRef(String onCompleteSequenceRef) |
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isContentAware, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public boolean mediate(MessageContext synCtx)
public void completeAggregate(Aggregate aggregate)
aggregate
- the timed out Aggregate that holds collected messages and propertiespublic SynapseXPath getCorrelateExpression()
public void setCorrelateExpression(SynapseXPath correlateExpression)
public long getCompletionTimeoutMillis()
public void setCompletionTimeoutMillis(long completionTimeoutMillis)
public int getMinMessagesToComplete()
public void setMinMessagesToComplete(int minMessagesToComplete)
public int getMaxMessagesToComplete()
public void setMaxMessagesToComplete(int maxMessagesToComplete)
public SynapseXPath getAggregationExpression()
public void setAggregationExpression(SynapseXPath aggregationExpression)
public String getOnCompleteSequenceRef()
public void setOnCompleteSequenceRef(String onCompleteSequenceRef)
public SequenceMediator getOnCompleteSequence()
public void setOnCompleteSequence(SequenceMediator onCompleteSequence)
public Map getActiveAggregates()
public String getId()
public void setId(String id)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.