Package org.apache.camel.builder
Class AggregationStrategies
java.lang.Object
org.apache.camel.builder.AggregationStrategies
Toolbox class to create commonly used Aggregation Strategies in a fluent manner. For more information about the
supported
AggregationStrategy, see links to the Javadocs of the relevant class below.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.AggregationStrategyCreates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategyCreates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategyCreates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategyCreates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategybeanAllowNull(Class<?> type, String methodName) Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategybeanAllowNull(Object bean, String methodName) Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static FlexibleAggregationStrategy<Object> flexible()Creates aFlexibleAggregationStrategywith no particular type, i.e. performing no casts or type conversion of pick expression results.static <T> FlexibleAggregationStrategy<T> Creates aFlexibleAggregationStrategypivoting around a particular type, e.g. it casts all pick expression results to the desired type.static org.apache.camel.AggregationStrategyCreates aGroupedBodyAggregationStrategyaggregation strategy.static org.apache.camel.AggregationStrategyCreates aGroupedExchangeAggregationStrategyaggregation strategy.static org.apache.camel.processor.aggregate.StringAggregationStrategystring()Creates aStringAggregationStrategy.static org.apache.camel.processor.aggregate.StringAggregationStrategyCreates aStringAggregationStrategywith delimiter.static org.apache.camel.AggregationStrategyUse the latest incoming exchange.static org.apache.camel.AggregationStrategyUse the original exchange.static org.apache.camel.AggregationStrategyuseOriginal(boolean propagateException) Use the original exchange.
-
Method Details
-
flexible
Creates aFlexibleAggregationStrategypivoting around a particular type, e.g. it casts all pick expression results to the desired type.- Parameters:
type- The type theFlexibleAggregationStrategydeals with.
-
flexible
Creates aFlexibleAggregationStrategywith no particular type, i.e. performing no casts or type conversion of pick expression results. -
useLatest
public static org.apache.camel.AggregationStrategy useLatest()Use the latest incoming exchange.- See Also:
-
useOriginal
public static org.apache.camel.AggregationStrategy useOriginal()Use the original exchange.- See Also:
-
useOriginal
public static org.apache.camel.AggregationStrategy useOriginal(boolean propagateException) Use the original exchange.- Parameters:
propagateException- whether to propgate exception if errors was thrown during processing split messages.- See Also:
-
groupedExchange
public static org.apache.camel.AggregationStrategy groupedExchange()Creates aGroupedExchangeAggregationStrategyaggregation strategy. -
groupedBody
public static org.apache.camel.AggregationStrategy groupedBody()Creates aGroupedBodyAggregationStrategyaggregation strategy. -
bean
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
bean
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
beanAllowNull
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
bean
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
bean
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
beanAllowNull
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy. -
string
public static org.apache.camel.processor.aggregate.StringAggregationStrategy string()Creates aStringAggregationStrategy. -
string
public static org.apache.camel.processor.aggregate.StringAggregationStrategy string(String delimiter) Creates aStringAggregationStrategywith delimiter.- Parameters:
delimiter- The delimiter to join with.
-