Package | Description |
---|---|
org.apache.camel.util.toolbox |
Toolbox classes to create commonly used Aggregation Strategies in a fluent manner.
|
Modifier and Type | Method and Description |
---|---|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.accumulateInCollection(Class<? extends Collection> collectionType)
Accumulate the result of the pick expression in a collection of the designated type.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.castAs(Class<E> castAs)
Cast the result of the pick expression to this type.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.completionAware(FlexibleAggregationStrategy.CompletionAwareMixin completionMixin)
Plugs in logic to execute when an aggregation batch completes.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.condition(Predicate predicate)
Set a filter condition such as only results satisfying it will be aggregated.
|
static FlexibleAggregationStrategy<Object> |
AggregationStrategies.flexible()
Creates a
FlexibleAggregationStrategy with no particular type, i.e. |
static <T> FlexibleAggregationStrategy<T> |
AggregationStrategies.flexible(Class<T> type)
Creates a
FlexibleAggregationStrategy pivoting around a particular type, e.g. |
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.ignoreInvalidCasts()
Ignores invalid casts instead of throwing an exception if the pick expression result cannot be casted to the
specified type.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.pick(Expression expression)
Set an expression to extract the element to be aggregated from the incoming
Exchange . |
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.storeInBody()
Store the result of this Aggregation Strategy (whether an atomic element or a Collection) in the body of the IN message.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.storeInHeader(String headerName)
Store the result of this Aggregation Strategy (whether an atomic element or a Collection) in an IN message header with
the designated name.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.storeInProperty(String propertyName)
Store the result of this Aggregation Strategy (whether an atomic element or a Collection) in a property with
the designated name.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.storeNulls()
Enables storing null values in the resulting collection.
|
FlexibleAggregationStrategy<E> |
FlexibleAggregationStrategy.timeoutAware(FlexibleAggregationStrategy.TimeoutAwareMixin timeoutMixin)
Plugs in logic to execute when a timeout occurs.
|
Apache Camel