vert-x3 / vertx-amqp-client

An AMQP client for Vert.x
Apache License 2.0
17 stars 18 forks source link

Completion handlers for delivery state changes #65

Open mender3 opened 2 years ago

mender3 commented 2 years ago

Description

Include async result handlers on delivery state change methods, accepted, released, rejected, & modified.

Use case

Message consumer completes processing a message and calls the accepted method. The broker fails to receive or handle the state change for some reason. That message could potentially be redelivered and reprocessed. An async result handler would allow the message consumer to take appropriate action in the event of a failure, or move on with confidence that the message's lifecycle is complete.