Class | Qpid::Proton::Link |
In: |
lib/core/link.rb
|
Parent: | Endpoint |
The base for both Sender and Receiver, providing common functionality between both ends.
A Link has a single parent Qpid::Proton::Session instance.
SND_UNSETTLED | = | Cproton::PN_SND_UNSETTLED | The sender will send all deliveries initially unsettled. | |
SND_SETTLED | = | Cproton::PN_SND_SETTLED | The sender will send all deliveries settled to the receiver. | |
SND_MIXED | = | Cproton::PN_SND_MIXED | The sender may send a mixture of settled and unsettled deliveries. | |
RCV_FIRST | = | Cproton::PN_RCV_FIRST | The receiver will settle deliveries regardless of what the sender does. | |
RCV_SECOND | = | Cproton::PN_RCV_SECOND | The receiver will only settle deliveries after the sender settles. | |
PROTON_METHOD_PREFIX | = | "pn_link" | @private |
Each link maintains a sequence of deliveries in the order they were created, along with a reference to the current delivery. All send and receive operations on a link take place on the current delivery. If a link has no current delivery, the current delivery is automatically pointed to the next delivery created on the link.
Once initialized, the current delivery remains the same until it is changed by advancing, or until it is settled.
@see next @see Delivery#settle
Sets the local receiver settle mode.
@param mode [Fixnum] The settle mode.
@see RCV_FIRST @see RCV_SECOND
Returns the local sender settle mode.
@return [Fixnum] The local sender settle mode.
@see snd_settle_mode