Package org.apache.camel.builder
Class AggregationStrategies
- java.lang.Object
-
- org.apache.camel.builder.AggregationStrategies
-
public final class AggregationStrategies extends Object
Toolbox class to create commonly used Aggregation Strategies in a fluent manner. For more information about the supportedAggregationStrategy, see links to the Javadocs of the relevant class below.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.camel.AggregationStrategybean(Class<?> type)Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategybean(Class<?> type, String methodName)Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategybean(Object bean)Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.static org.apache.camel.AggregationStrategybean(Object bean, String methodName)Creates 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.static <T> FlexibleAggregationStrategy<T>flexible(Class<T> type)Creates aFlexibleAggregationStrategypivoting around a particular type, e.g.static org.apache.camel.AggregationStrategygroupedBody()Creates aGroupedBodyAggregationStrategyaggregation strategy.static org.apache.camel.AggregationStrategygroupedExchange()Creates aGroupedExchangeAggregationStrategyaggregation strategy.static org.apache.camel.processor.aggregate.StringAggregationStrategystring()Creates aStringAggregationStrategy.static org.apache.camel.processor.aggregate.StringAggregationStrategystring(String delimiter)Creates aStringAggregationStrategywith delimiter.static org.apache.camel.AggregationStrategyuseLatest()Use the latest incoming exchange.static org.apache.camel.AggregationStrategyuseOriginal()Use the original exchange.static org.apache.camel.AggregationStrategyuseOriginal(boolean propagateException)Use the original exchange.
-
-
-
Method Detail
-
flexible
public static <T> FlexibleAggregationStrategy<T> flexible(Class<T> type)
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
public static FlexibleAggregationStrategy<Object> 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:
UseLatestAggregationStrategy
-
useOriginal
public static org.apache.camel.AggregationStrategy useOriginal()
Use the original exchange.- See Also:
UseOriginalAggregationStrategy
-
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:
UseOriginalAggregationStrategy
-
groupedExchange
public static org.apache.camel.AggregationStrategy groupedExchange()
Creates aGroupedExchangeAggregationStrategyaggregation strategy.
-
groupedBody
public static org.apache.camel.AggregationStrategy groupedBody()
Creates aGroupedBodyAggregationStrategyaggregation strategy.
-
bean
public static org.apache.camel.AggregationStrategy bean(Object bean)
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.
-
bean
public static org.apache.camel.AggregationStrategy bean(Object bean, String methodName)
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.
-
beanAllowNull
public static org.apache.camel.AggregationStrategy beanAllowNull(Object bean, String methodName)
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.
-
bean
public static org.apache.camel.AggregationStrategy bean(Class<?> type)
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.
-
bean
public static org.apache.camel.AggregationStrategy bean(Class<?> type, String methodName)
Creates aAggregationStrategyBeanAdapterfor using a POJO as the aggregation strategy.
-
beanAllowNull
public static org.apache.camel.AggregationStrategy beanAllowNull(Class<?> type, String methodName)
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.
-
-