Class SplitDefinition
Scope-opener definition for the Splitter EIP.
Splits an exchange into sub-exchanges via a splitter function,
then passes each sub-exchange through the child pipeline (Outputs).
Inherits the leaf DSL from ;
close with .
public class SplitDefinition : RouteDefinitionBase<SplitDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope, ICompositeScope
Inheritance
Implements
Inherited Members
Properties
SourceExpression
Captured source when the splitter was built from an expression instance; null otherwise.
public IExpression? SourceExpression { get; }
Methods
AggregationStrategy(Func<IExchange?, IExchange, IExchange>)
Sets the pair-wise aggregation strategy.
public SplitDefinition AggregationStrategy(Func<IExchange?, IExchange, IExchange> strategy)
CreateProcessor(IRouteContext)
Compile this node into a runtime processor.
public override IProcessor CreateProcessor(IRouteContext context)
EndSplit()
Closes this split scope and returns the parent route definition.
public IRouteDefinition EndSplit()
MaxParallelism(int)
Sets maximum degree of parallelism (0 = cpu count).
public SplitDefinition MaxParallelism(int value)
Parallel(bool)
Enables parallel processing of split parts.
public SplitDefinition Parallel(bool value = true)
ParallelProcessing(bool)
Apache Camel alias for .
public SplitDefinition ParallelProcessing(bool value = true)
StopOnException(bool)
Sets stop-on-exception behaviour (default: true).
public SplitDefinition StopOnException(bool value = true)
Timeout(TimeSpan)
Sets a timeout for the entire split operation.
public SplitDefinition Timeout(TimeSpan timeout)