Class IbmMqConsumer

Namespace: redb.Route.IbmMq
Assembly: redb.Route.IbmMq.dll

Batch mode of the IBM MQ consumer (batching=true, poll receive mode), on the core batch contract: each worker
reads a batch with MQGET under its connection's syncpoint, runs it through the route once and commits it (MQCMIT)
or backs it out (MQBACK), the rule of a failed single message for every message of the batch. A poison message
and a request (a message that asks for a reply, unless disableReplyTo) go to the backout queue in the
batch's unit of work instead of into the batch.

public sealed class IbmMqConsumer : IConsumer

Inheritance

Object→IbmMqConsumer

Implements

Properties

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

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors