Constructor and Description |
---|
Aggregate(SynapseEnvironment synEnv,
String corelation,
long timeoutMillis,
int min,
int max,
AggregateMediator mediator)
Save aggregation properties and timeout
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMessage(MessageContext synCtx)
Add a message to the interlan message list
|
String |
getCorrelation() |
long |
getExpiryTimeMillis() |
boolean |
getLock() |
int |
getMaxCount() |
List<MessageContext> |
getMessages() |
int |
getMinCount() |
long |
getTimeoutMillis() |
boolean |
isComplete(SynapseLog synLog)
Has this aggregation group completed?
|
boolean |
isCompleted() |
void |
releaseLock() |
void |
run() |
void |
setCompleted(boolean completed) |
void |
setCorrelation(String correlation) |
void |
setExpiryTimeMillis(long expiryTimeMillis) |
void |
setMaxCount(int maxCount) |
void |
setMessages(List<MessageContext> messages) |
void |
setMinCount(int minCount) |
void |
setTimeoutMillis(long timeoutMillis) |
cancel, scheduledExecutionTime
public Aggregate(SynapseEnvironment synEnv, String corelation, long timeoutMillis, int min, int max, AggregateMediator mediator)
corelation
- representing the corelation name of the messages in the aggregatetimeoutMillis
- the timeout duration in millisecondsmin
- the minimum number of messages to be aggregatedmax
- the maximum number of messages to be aggregatedmediator
- public boolean addMessage(MessageContext synCtx)
synCtx
- message to be added into this aggregation grouppublic boolean isComplete(SynapseLog synLog)
synLog
- the Synapse log to usepublic long getTimeoutMillis()
public void setTimeoutMillis(long timeoutMillis)
public int getMinCount()
public void setMinCount(int minCount)
public int getMaxCount()
public void setMaxCount(int maxCount)
public String getCorrelation()
public void setCorrelation(String correlation)
public List<MessageContext> getMessages()
public void setMessages(List<MessageContext> messages)
public long getExpiryTimeMillis()
public void setExpiryTimeMillis(long expiryTimeMillis)
public boolean getLock()
public void releaseLock()
public boolean isCompleted()
public void setCompleted(boolean completed)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.