Class Qpid::Proton::Delivery
In: lib/core/delivery.rb
Parent: Transfer

Allow a {Receiver} to indicate the status of a received message to the {Sender}

Methods

accept   complete?   message   modify   new   receiver   reject   release  

Public Class methods

Public Instance methods

Accept the receiveed message.

@return true if the incoming message is complete, call {message} to retrieve it.

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.

@deprecated use {release} with modification options

@return [Receiver] The parent {Receiver} link.

Reject a message, indicating to the sender that is invalid and should never be delivered again to this or any other receiver.

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.

[Validate]