Home  > 

Class receiver

A channel for receiving messages. A receiver contains an ordered sequence of deliveries.

Related: Class receiver-options, Class session, Class sender, Class delivery, Class terminus

Implementations: C, C++, Java, Python

AMQP: Conceptual overview, Attach performative, Detach performative, Flow performative, Transfer performative, Disposition performative

Basic properties and methods

PropertySummaryTypeDefault valueMutableNullable
container The container holding this endpoint objectcontainerinstance
session The containing sessionsessioninstance
source The source end of the linksourceinstance
target The target end of the linktargetinstance
name The link namestringdiscovered
deliveries The deliveries contained in this receiveriterator of deliveryinstance
MethodSummaryInputsOutputs
open Open the receiver[options]
close Close the receiver[error-condition]
detach Detach the receiver without closing it[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

Reliability

PropertySummaryTypeDefault valueMutableNullable
delivery-mode The message delivery guaranteedelivery-modediscovered

Flow control

Related: Property link.credit, Property receiver-options.credit-window

PropertySummaryTypeDefault valueMutableNullable
credit The number of messages the receiving end can acceptlongdiscovered
MethodSummaryInputsOutputs
add-credit Issue credit to the sending endcount
drain Request any messages available at the sending end

Resource limits

PropertySummaryTypeDefault valueMutableNullable
max-message-size The maximum message sizeulongdiscovered