dotnet-activemq-artemis-client icon indicating copy to clipboard operation
dotnet-activemq-artemis-client copied to clipboard

Support for first-acquirer field

Open Havret opened this issue 4 years ago • 0 comments

Feature description

Extend Message API with first-acquirer field. If the value is true, then this message has not been acquired by any other link (see section 3.3). If the value is false, then this message MAY have previously been acquired by another link or links.

Feature in action

var msg = await _consumer.ReceiveAsync(_cts.Token);
if (msg.FirstAcquirer)
{
    // this message has not been acquired by any other link
}
else
{
    // this message MAY have previously been acquired by another link or links
}

Additional context

OASIS Advanced Message Queuing Protocol(AMQP) Version 1.0 - section 3.2.1

Havret avatar Aug 02 '20 16:08 Havret