Home  > 

Class receiver

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

Basic properties and methods

PropertySummaryTypeDefault valueMutableNullable
client The client holding this endpoint objectclientinstance☐☐
session The containing sessionsessioninstance☐☐
source The source end of the linksourceinstance☐☐
target The target end of the linktargetinstance☐☐
MethodSummaryInputsOutputs
wait Block until the remote peer confirms the open operation[timeout]endpoint
(async) wait Wait until the remote peer confirms the open operationtask of endpoint

Endpoint lifecycle

PropertySummaryTypeDefault valueMutableNullable
state The remote endpoint stateendpoint-statediscovered☐☐
error The remote endpoint error conditionerror-conditiondiscovered☐☒
detached True if the link was detached, not permanently closedbooleandiscovered☐☐
MethodSummaryInputsOutputs
close Start closing the endpoint[error-condition]future of endpoint
(async) close Start closing the endpoint[error-condition]task of endpoint
detach Detach the link without permanently closing it[error-condition]future of link
(async) detach Detach the link without permanently closing it[error-condition]task of link

Extended attributes

PropertySummaryTypeDefault valueMutableNullable
properties Application-defined propertiesmap of symbol ⇒ objectdiscovered☐☒
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☐☐

Resource limits

PropertySummaryTypeDefault valueMutableNullable
max-message-size The maximum message sizeulongdiscovered☐☒

Message operations

MethodSummaryInputsOutputs
receive Receive a delivery on the link[timeout]delivery
try-receive Receive a delivery on the link or return null if none is availabledelivery
(async) receive Receive a delivery on the linktask of delivery