Class TimerConsumer

Assembly: redb.Route.dll

Timer consumer. Fires the processor on a periodic schedule.
Creates a new exchange per tick.

public class TimerConsumer : DrainableConsumer, IConsumer

Inheritance

Object→DrainableConsumer→TimerConsumer

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; }

FireCount

Gets the number of fires completed.

public long FireCount { get; }

Methods

RunAsync(CancellationToken, CancellationToken)

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

protected override Task RunAsync(CancellationToken pollCt, CancellationToken processingCt)

Constructors