Class TimerConsumer
Timer consumer. Fires the processor on a periodic schedule.
Creates a new exchange per tick.
public class TimerConsumer : DrainableConsumer, IConsumer
Inheritance
Implements
Inherited Members
DrainableConsumer.AwaitRunTask(),DrainableConsumer.ConsumerEndpoint,DrainableConsumer.ConsumerName,DrainableConsumer.DecrementInflight(),DrainableConsumer.Endpoint,DrainableConsumer.IncrementInflight(),DrainableConsumer.Logger,DrainableConsumer.OnStarting(CancellationToken),DrainableConsumer.OnStopAccepting(),DrainableConsumer.OnStopped(),DrainableConsumer.Processor,DrainableConsumer.ProcessWithTracking(IExchange, TransportSpan, CancellationToken),DrainableConsumer.ProcessWithTracking(IExchange, CancellationToken),DrainableConsumer.RunAsync(CancellationToken, CancellationToken),DrainableConsumer.Start(CancellationToken),DrainableConsumer.Stop(CancellationToken)
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; }
Methods
RunAsync(CancellationToken, CancellationToken)
Main consumer loop. Receives pollCt (stop accepting new work)
protected override Task RunAsync(CancellationToken pollCt, CancellationToken processingCt)
Constructors
TimerConsumer(TimerEndpoint, IProcessor, TimerEndpointOptions)
Creates a timer consumer.