|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<Exchange>
org.apache.camel.processor.aggregate.DefaultAggregationCollection
public class DefaultAggregationCollection
A Collection
which aggregates exchanges together using a correlation
expression so that there is only a single message exchange sent for a single
correlation key.
Constructor Summary | |
---|---|
DefaultAggregationCollection()
|
|
DefaultAggregationCollection(Expression correlationExpression,
AggregationStrategy aggregationStrategy)
|
Method Summary | |
---|---|
boolean |
add(Exchange exchange)
Adds the given exchange to this collection |
void |
clear()
Clears this collection |
protected Map<Object,Exchange> |
getAggregated()
|
AggregationStrategy |
getAggregationStrategy()
Gets the aggregation strategy |
Expression |
getCorrelationExpression()
Gets the correlation expression |
Iterator<Exchange> |
iterator()
Gets the iterator to iterate this collection. |
void |
onAggregation(Object correlationKey,
Exchange newExchange)
A strategy method allowing derived classes such as PredicateAggregationCollection
to check to see if the aggregation has completed |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
Sets the aggregation strategy to be used |
void |
setCorrelationExpression(Expression correlationExpression)
Sets the correlation expression to be used |
int |
size()
Gets the size of this collection |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
addAll, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public DefaultAggregationCollection()
public DefaultAggregationCollection(Expression correlationExpression, AggregationStrategy aggregationStrategy)
Method Detail |
---|
protected Map<Object,Exchange> getAggregated()
public boolean add(Exchange exchange)
AggregationCollection
add
in interface Collection<Exchange>
add
in interface AggregationCollection
add
in class AbstractCollection<Exchange>
public Iterator<Exchange> iterator()
AggregationCollection
iterator
in interface Iterable<Exchange>
iterator
in interface Collection<Exchange>
iterator
in interface AggregationCollection
iterator
in class AbstractCollection<Exchange>
public int size()
AggregationCollection
size
in interface Collection<Exchange>
size
in interface AggregationCollection
size
in class AbstractCollection<Exchange>
public void clear()
AggregationCollection
clear
in interface Collection<Exchange>
clear
in interface AggregationCollection
clear
in class AbstractCollection<Exchange>
public void onAggregation(Object correlationKey, Exchange newExchange)
AggregationCollection
PredicateAggregationCollection
to check to see if the aggregation has completed
onAggregation
in interface AggregationCollection
public Expression getCorrelationExpression()
AggregationCollection
getCorrelationExpression
in interface AggregationCollection
public void setCorrelationExpression(Expression correlationExpression)
AggregationCollection
setCorrelationExpression
in interface AggregationCollection
public AggregationStrategy getAggregationStrategy()
AggregationCollection
getAggregationStrategy
in interface AggregationCollection
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
AggregationCollection
setAggregationStrategy
in interface AggregationCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |