public class AggregationStrategyClause<T> extends Object implements AggregationStrategy
Constructor and Description |
---|
AggregationStrategyClause(T parent) |
Modifier and Type | Method and Description |
---|---|
Exchange |
aggregate(Exchange oldExchange,
Exchange newExchange)
Aggregates an old and new exchange together to create a single combined exchange
|
T |
body(BiFunction<Object,Object,Object> function)
TODO: document
Note: this is experimental and subject to changes in future releases.
|
<B> T |
body(Class<B> type,
BiFunction<B,B,Object> function)
TODO: document
Note: this is experimental and subject to changes in future releases.
|
<O,N> T |
body(Class<O> oldType,
Class<N> newType,
BiFunction<O,N,Object> function)
TODO: document
Note: this is experimental and subject to changes in future releases.
|
T |
exchange(BiFunction<Exchange,Exchange,Exchange> function)
TODO: document
Note: this is experimental and subject to changes in future releases.
|
T |
message(BiFunction<Message,Message,Message> function)
TODO: document
Note: this is experimental and subject to changes in future releases.
|
public AggregationStrategyClause(T parent)
public Exchange aggregate(Exchange oldExchange, Exchange newExchange)
AggregationStrategy
aggregate
in interface AggregationStrategy
oldExchange
- the oldest exchange (is null on first aggregation as we only have the new exchange)newExchange
- the newest exchange (can be null if there was no data possible to acquire)public T exchange(BiFunction<Exchange,Exchange,Exchange> function)
public T message(BiFunction<Message,Message,Message> function)
public T body(BiFunction<Object,Object,Object> function)
public <B> T body(Class<B> type, BiFunction<B,B,Object> function)
Apache Camel