Home  > 

Class session

A container of senders and receivers.

Related: Class session-options, Class connection, Class sender, Class receiver

Implementations: C, C++, Java, Python

AMQP: Conceptual overview, Begin performative, End performative

Basic properties and methods

PropertySummaryTypeDefault valueMutableNullable
container The container holding this endpoint objectcontainerinstance
connection The containing connectionconnectioninstance
senders The senders contained in this sessioniterator of senderinstance
receivers The receivers contained in this sessioniterator of receiverinstance
MethodSummaryInputsOutputs
open Open the session[session-options]
close Close the session[error-condition]

Endpoint lifecycle

PropertySummaryTypeDefault valueMutableNullable
state The remote endpoint stateendpoint-statediscovered
error The remote endpoint error conditionerror-conditiondiscovered

Event processing

MethodSummaryInputsOutputs
add-work Register a function to be calledfunction

Extended attributes

PropertySummaryTypeDefault valueMutableNullable
properties Application-defined propertiesmap of symbolobjectdiscovered
offered-capabilities Extensions the endpoint supportsarray of symboldiscovered
desired-capabilities Extensions the endpoint can usearray of symboldiscovered

Message operations

MethodSummaryInputsOutputs
send proposedSend a message on a link with the given addressmessagetracker
send-request proposedSend a request messagemessagetracker
send-response proposedSend a response messageresponse-message, request-messagetracker

Sender and receiver operations

MethodSummaryInputsOutputs
open-sender Create and open a sending linkaddress, [sender-options]sender
open-receiver Create and open a receiving linkaddress, [receiver-options]receiver

Flow control

PropertySummaryTypeDefault valueMutableNullable
incoming-bytes The number of incoming bytes currently buffereduintdiscovered
outgoing-bytes The number of outgoing bytes currently buffereduintdiscovered

Resource limits

PropertySummaryTypeDefault valueMutableNullable
incoming-window The maximum incoming transfer framesuintdiscovered
outgoing-window The maximum outgoing transfer framesuintdiscovered