Class | Qpid::Proton::Delivery |
In: |
lib/core/delivery.rb
|
Parent: | Object |
A Delivery maintains detail on the delivery of data to an endpoint.
A Delivery has a single parent Qpid::Proton::Link
@example
# SCENARIO: An event comes in notifying that data has been delivered to # the local endpoint. A Delivery object can be used to check # the details of the delivery. delivery = @event.delivery if delivery.readable? && !delivery.partial? # decode the incoming message msg = Qpid::Proton::Message.new msg.decode(link.receive(delivery.pending)) end
PROTON_METHOD_PREFIX | = | "pn_delivery" | @private |
Returns the local disposition state for the delivery.
@return [Disposition] The local disposition state.
Returns the remote disposition state for the delivery.
@return [Disposition] The remote disposition state.
Returns the next delivery on the connection that has pending operations.
@return [Delivery, nil] The next delivery, or nil if there are none.
@see Connection#work_head