Class ScatterGatherDefinition
Definition for a Scatter-Gather step. Collects configuration and creates a
at route-build time.
public sealed class ScatterGatherDefinition : ProcessorDefinition, IProcessorDefinition, IScatterGatherDefinition
Inheritance
Implements
Inherited Members
Properties
AggregationStrategy
Mandatory pair-wise aggregation: (accumulated, current) → merged.
public Func<IExchange, IExchange, IExchange>? AggregationStrategy { get; }
DynamicRecipients
Runtime recipient factory (null when static recipients are configured).
public Func<IExchange, IEnumerable<string>>? DynamicRecipients { get; }
MaxDegreeOfParallelism
Maximum degree of parallelism (0 = processor count).
public int MaxDegreeOfParallelism { get; }
ParallelProcessing
Whether recipients are processed in parallel (default: true).
public bool ParallelProcessing { get; }
StaticRecipients
Fixed recipient URIs (null when dynamic recipients are configured).
public string[]? StaticRecipients { get; }
StopOnException
Whether to stop immediately on first exception (default: false).
public bool StopOnException { get; }
Timeout
Maximum duration to wait for all responses (default: zero = no timeout).
public TimeSpan Timeout { get; }
Methods
CreateProcessor(IRouteContext)
Compile this node into a runtime processor.
public override IProcessor CreateProcessor(IRouteContext context)