Class ResequencerProcessor

Assembly: redb.Route.dll

Resequences exchanges based on a sequence key, delivering them in order.
Uses batch mode: collects exchanges until a batch is complete (by size or timeout),
then sorts and delivers them. An active timer ensures buffered messages are flushed
even when no new messages arrive.
Thread-safe for concurrent pipeline usage. Implements
to release the timer and semaphore.

public sealed class ResequencerProcessor : IProcessor, IAsyncDisposable

Inheritance

Object→ResequencerProcessor

Implements

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or

public ValueTask DisposeAsync()

Flush(CancellationToken)

Forces a flush of any buffered exchanges. Call this when shutting down

public Task Flush(CancellationToken ct = default)

GetBufferedCount(CancellationToken)

Gets the number of currently buffered exchanges.

public Task<int> GetBufferedCount(CancellationToken ct = default)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors