RabbitMQ入門教程(十一):訊息屬性Properties
阿新 • • 發佈:2019-02-03
簡介
傳送訊息可以為訊息指定一些引數
- Delivery mode: 是否持久化,1 - Non-persistent,2 - Persistent
- Headers:Headers can have any name. Only long string headers can be set here.
- Properties: You can set other message properties here (delivery mode and headers are pulled out as the most common cases). Invalid properties will be ignored. Valid properties are:
- content_type : 訊息內容的型別
- content_encoding: 訊息內容的編碼格式
- priority: 訊息的優先順序
- correlation_id:關聯id
- reply_to: 用於指定回覆的佇列的名稱
- expiration: 訊息的失效時間
- message_id: 訊息id
- timestamp:訊息的時間戳
- type: 型別
- user_id: 使用者id
- app_id: 應用程式id
- cluster_id: 叢集id
- Payload: 訊息內容