Class | Qpid::Proton::Delivery |
In: |
lib/core/delivery.rb
|
Parent: | Transfer |
Get the message from the delivery. @return [Message] The message @raise [AbortedError] if the message has been aborted (check with {aborted?} @raise [UnderflowError] if the message is incomplete (check with {complete?} @raise [::ArgumentError] if the delivery is not the current delivery on a receiving link.
Release a message, indicating to the sender that it was not processed but may be delivered again to this or another receiver.
@param opts [Hash] Instructions to the sender to modify re-delivery.
To allow re-delivery with no modifications at all use +release(nil)+
@option opts [Boolean] :failed (true) Instruct the sender to increase
{Message#delivery_count} so future receivers will know there was a previous failed delivery.
@option opts [Boolean] :undeliverable (false) Instruct the sender that this
message should never be re-delivered to this receiver, although it may be delivered other receivers.
@option opts [Hash] :annotations Instruct the sender to update the
{Message#annotations} with these +key=>value+ pairs before re-delivery, replacing existing entries in {Message#annotations} with the same key.