Jefwillems opened a new pull request, #86:
URL: https://github.com/apache/activemq-nms-amqp/pull/86
This pull request adds the ability to acknowledge messages with
MODIFIED_FAILED, instead of MODIFIED_FAILED_UNDELIVERABLE.
A very basic example below:
```csharp
private void ReceiveMessage(IMessage message)
{
var txt = message.Body<string>();
_logger.LogInformation("message received: {Content}", txt);
if (txt.Contains('5') && message is NmsMessage msg)
{
msg.NmsAcknowledgeCallback.AcknowledgementType =
AckType.MODIFIED_FAILED;
}
message.Acknowledge();
}
```
As far as i can see, this method is the only way to acknowledge a failure
when using `AcknowledgementMode.IndividualAcknowledge`
I tested this with an artemis broker, and all tests still run fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]