Class AmqpConsumer
Batch mode of the AMQP 1.0 consumer (batching=true), on the core batch contract: each worker collects up to
maxBatchMessages deliveries of its receiver link, runs them through the route once and settles them once.
Success accepts every delivery; a failure applies the rule of a failed single delivery to each of them: released,
so the broker delivers it again. A batch the consumer stops on is given back: released, or, once the stop has closed
the link, returned by the broker on detach. A delivery that asks for a reply cannot
be answered from a one-way batch: unless disableReplyTo=true, it is rejected at once (the broker moves a
rejected delivery to its dead letter address, where it has one) and the rest goes on.
public sealed class AmqpConsumer : IConsumer
Inheritance
Implements
Properties
Address
The node this consumer reads: the address of the URI, or, with dynamic=true, the name the broker gave
public string Address { get; }
Endpoint
The endpoint this consumer is attached to (for diagnostics/logging).
public IEndpoint Endpoint { get; }
ProcessedCount
Number of messages successfully processed (summed across all worker loops).
public long ProcessedCount { get; }
Methods
Constructors
AmqpConsumer(AmqpEndpoint, IProcessor, AmqpEndpointOptions)
Creates an AMQP consumer.