pub struct SplitterConfig {
pub expression: SplitExpression,
pub aggregation: AggregationStrategy,
pub parallel: bool,
pub parallel_limit: Option<usize>,
pub stop_on_exception: bool,
}Expand description
Configuration for the Splitter EIP.
Fields§
§expression: SplitExpressionExpression that splits an exchange into fragments.
aggregation: AggregationStrategyHow to aggregate fragment results.
parallel: boolWhether to process fragments in parallel.
parallel_limit: Option<usize>Maximum number of parallel fragments (None = unlimited).
stop_on_exception: boolWhether to stop processing on the first exception.
In parallel mode this only affects aggregation (the first error is
propagated), not in-flight futures — join_all cannot cancel
already-spawned work.
Implementations§
Source§impl SplitterConfig
impl SplitterConfig
Sourcepub fn new(expression: SplitExpression) -> Self
pub fn new(expression: SplitExpression) -> Self
Create a new splitter config with the given split expression.
Sourcepub fn aggregation(self, strategy: AggregationStrategy) -> Self
pub fn aggregation(self, strategy: AggregationStrategy) -> Self
Set the aggregation strategy for combining fragment results.
Sourcepub fn parallel_limit(self, limit: usize) -> Self
pub fn parallel_limit(self, limit: usize) -> Self
Set the maximum number of concurrent fragments in parallel mode.
Sourcepub fn stop_on_exception(self, stop: bool) -> Self
pub fn stop_on_exception(self, stop: bool) -> Self
Control whether processing stops on the first fragment error.
In parallel mode this only affects aggregation — see the field-level doc comment for details.