Home  > 

Class endpoint

The base class for connection, session, and link.

Every AMQP endpoint starts out in an uninitialized state and then proceeds linearly to an active and then closed state. This lifecycle occurs at both endpoints involved, and so the state model for an endpoint includes not only the known local state but also the last known state of the remote endpoint.

The local and remote peers each maintain a set of corresponding local and remote endpoints. Each peer evaluates and reconciles remote endpoint state changes as they are communicated over the wire.

Related: Class endpoint-options, Class connection, Class session, Class link

Implementations: C++, Java, Python

AMQP: Conceptual overview

Basic properties and methods

PropertySummaryTypeDefault valueMutableNullable
container The container holding this endpoint objectcontainerinstance

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