A mutable holder of application content.
Related: Class sender, Class receiver, Class delivery
Implementations: C, C++, Java, Python
AMQP: Message format
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| id | A unique message identifier | message-id | null | ☒ | ☒ |
| user | The identity of the user producing the message | string | null | ☒ | ☒ |
| Method | Summary | Inputs | Outputs |
|---|---|---|---|
| constructor | Create a new message | [body] | message |
| clear | Delete the content of the message |
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| to | The destination address | string | null | ☒ | ☒ |
| reply-to | The address for replies | string | null | ☒ | ☒ |
| correlation-id | An identifier for matching related messages | message-id | null | ☒ | ☒ |
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| subject | Summary information | string | null | ☒ | ☒ |
| body | The main message content | object | null | ☒ | ☒ |
| content-type | The MIME type of the body | symbol | null | ☒ | ☒ |
| expiry-time | The absolute time past which the message should be discarded | timestamp | null | ☒ | ☒ |
| creation-time | The absolute time of message creation | timestamp | null | ☒ | ☒ |
| inferred | Determine the AMQP section type from the body type | boolean | false | ☒ | ☒ |
Related: AMQP definition
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| durable | Durability requirement | boolean | false | ☒ | ☐ |
| priority | Relative message priority | ubyte | 4 | ☒ | ☒ |
| ttl | The time to live | duration | null | ☒ | ☒ |
| first-acquirer | The recipient is first to acquire the message | boolean | true | ☒ | ☐ |
| delivery-count | The number of prior unsuccessful delivery attempts | uint | 0 | ☒ | ☐ |
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| group-id | The identifier of the group the message belongs to | string | null | ☒ | ☒ |
| group-sequence | The relative position of this message within its group | uint | null | ☒ | ☒ |
| reply-to-group-id | The group a reply message belongs to | string | null | ☒ | ☒ |
| Property | Summary | Type | Default value | Mutable | Nullable |
|---|---|---|---|---|---|
| properties | Application-defined message attributes | map of string ⇒ object | null | ☒ | ☒ |
| delivery-annotations | Delivery-specific transport attributes | map of symbol ⇒ object | null | ☒ | ☒ |
| message-annotations | Message-specific transport attributes | map of symbol ⇒ object | null | ☒ | ☒ |
| Method | Summary | Inputs | Outputs |
|---|---|---|---|
| encode | Encode the message to bytes | binary | |
| decode | Decode the message from bytes | bytes |