Class RabbitMQConsumer
Batch mode of the RabbitMQ consumer (batching=true), on the core batch contract: deliveries are buffered as
they arrive, concurrentConsumers workers each collect a batch from the buffer and run it through the route,
one batch per worker at a time, and every delivery of a batch is settled once after the route. A failed batch
follows the rule of a failed single delivery for every delivery in it: tried again up to
maximumRetryAttempts, retryDelay apart, then rejected without requeue (or requeued).
public sealed class RabbitMQConsumer : PushConsumer, IConsumer
Inheritance
Implements
Inherited Members
Properties
ConsumerEndpoint
The endpoint this consumer is attached to.
protected override IEndpoint ConsumerEndpoint { get; }
ConsumerName
Display name for logging (rabbitmq:orders).
protected override string ConsumerName { get; }
Methods
StopAcceptingAsync(CancellationToken)
Cancels the subscription so that no new message arrives (a broker-side cancel); errors are logged.
protected override Task StopAcceptingAsync(CancellationToken ct)
SubscribeAsync(CancellationToken)
Opens what the subscription needs and subscribes; a failure fails the start.
protected override Task SubscribeAsync(CancellationToken ct)
UnsubscribeAsync(CancellationToken)
Releases what opened; runs after the drain.
protected override Task UnsubscribeAsync(CancellationToken ct)
Constructors
RabbitMQConsumer(RabbitMQEndpoint, IProcessor, RabbitMQEndpointOptions)
Creates a RabbitMQ consumer.