|
||||||||||
| 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 AggregationCollectionadd in class AbstractCollection<Exchange>public Iterator<Exchange> iterator()
AggregationCollection
iterator in interface Iterable<Exchange>iterator in interface Collection<Exchange>iterator in interface AggregationCollectioniterator in class AbstractCollection<Exchange>public int size()
AggregationCollection
size in interface Collection<Exchange>size in interface AggregationCollectionsize in class AbstractCollection<Exchange>public void clear()
AggregationCollection
clear in interface Collection<Exchange>clear in interface AggregationCollectionclear in class AbstractCollection<Exchange>
public void onAggregation(Object correlationKey,
Exchange newExchange)
AggregationCollectionPredicateAggregationCollection
to check to see if the aggregation has completed
onAggregation in interface AggregationCollectionpublic Expression getCorrelationExpression()
AggregationCollection
getCorrelationExpression in interface AggregationCollectionpublic void setCorrelationExpression(Expression correlationExpression)
AggregationCollection
setCorrelationExpression in interface AggregationCollectionpublic AggregationStrategy getAggregationStrategy()
AggregationCollection
getAggregationStrategy in interface AggregationCollectionpublic 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 | |||||||||