Class VmConsumer

Assembly: redb.Route.dll

VM consumer. Runs N concurrent workers that dequeue from the shared channel and process.

public class VmConsumer : DrainableConsumer, IConsumer

Inheritance

Object→DrainableConsumer→VmConsumer

Implements

Inherited Members

Properties

ConsumerEndpoint

The endpoint this consumer is attached to.

protected override IEndpoint ConsumerEndpoint { get; }

ConsumerName

Display name for logging (e.g. "kafka:orders", "file:/tmp/in").

protected override string ConsumerName { get; }

ProcessedCount

Total number of exchanges processed across all workers.

public long ProcessedCount { get; }

Methods

AwaitRunTask()

Awaits the run task. Override for consumers with multiple workers (e.g. Task.WhenAll).

protected override Task AwaitRunTask()

RunAsync(CancellationToken, CancellationToken)

Main consumer loop. Receives pollCt (stop accepting new work)

protected override Task RunAsync(CancellationToken pollCt, CancellationToken processingCt)

Constructors