RabbitMQ ——消息属性Properties

本文介绍了RabbitMQ中消息属性的重要参数,包括Delivery mode(持久化设置)、Headers、content_type、content_encoding、priority等,详细阐述了每个属性的作用,如delivery mode的非持久化和持久化选项,headers的自定义功能,以及message_id、timestamp等元数据信息的使用。
摘要由CSDN通过智能技术生成

简介

发送消息可以为消息指定一些参数

  • 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: 
  1. content_type : 消息内容的类型
  2. content_encoding: 消息内容的编码格式
  3. priority: 消息的优先级
  4. correlation_id:关联id
  5. reply_to: 用于指定回复的队列的名称
  6. expiration: 消息的失效时间
  7. message_id: 消息id
  8. timestamp:消息的时间戳
  9. type: 类型
  10. user_id: 用户id
  11. app_id: 应用程序id
  12. cluster_id: 集群id
  13. Payload: 消息内容

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

gmHappy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值