Class Qpid::Proton::Session
In: lib/core/session.rb
Parent: Endpoint

A session is the parent for senders and receivers.

A Session has a single parent Qpid::Proton::Connection instance.

Methods

_local_condition   close   connection   new   next   receiver   sender   wrap  

Included Modules

Util::Wrapper Util::SwigHelper

Constants

PROTON_METHOD_PREFIX = "pn_session"   @private

Public Class methods

@private

@private

Public Instance methods

Closed the session.

Once this operation has completed, the state flag will be set. This may be called without calling open, in which case it is the equivalence of calling open and then close immediately.

Returns the parent connection.

@return [Connection] The connection.

Retrieves the next session from a given connection that matches the specified state mask.

When uses with Connection#session_head an application can access all of the session son the connection that match the given state.

@param state_mask [Fixnum] The state mask to match.

@return [Session, nil] The next session if one matches, or nil.

Constructs a new receiver.

Each receiver between two AMQP containers must be uniquely named. Note that this uniqueness cannot be enforced at the library level, so some consideration should be taken in choosing link names.

@param name [String] The link name.

@return [Receiver, nil] The receiver, or nil if an error occurred.

Constructs a new sender.

Each sender between two AMQP containers must be uniquely named. Note that this uniqueness cannot be enforced at the library level, so some consideration should be taken in choosing link names.

@param name [String] The link name.

@return [Sender, nil] The sender, or nil if an error occurred.

[Validate]