Class AggregatorProcessor
Aggregates multiple exchanges into a single exchange using a correlation key and completion predicate.
Collects exchanges with the same correlation key, then applies the aggregation strategy
when the completion predicate is satisfied.
public class AggregatorProcessor : IProcessor, IAsyncDisposable
Inheritance
Implements
Properties
CompletionSize
Apache Camel completionSize: a group completes once it has combined this many exchanges. Checked after
public int? CompletionSize { get; init; }
PendingGroupCount
Gets the number of currently pending aggregation groups.
public int PendingGroupCount { get; }
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or
public ValueTask DisposeAsync()
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
AggregatorProcessor(Func<IExchange, string>, Func<IExchange, IExchange, IExchange>, Func<IExchange, bool>, IProcessor, TimeSpan?)
Creates an aggregator with an inactivity timeout: a group that receives nothing for
AggregatorProcessor(Func<IExchange, string>, Func<IExchange, IExchange, IExchange>, Func<IExchange, bool>, IProcessor)
Creates an aggregator processor.