首页 > 其他 > 详细

RabbitMQ入门教程(十一):消息属性Properties

时间:2019-11-15 13:50:09      阅读:81      评论:0      收藏:0      [点我收藏+]
原文:RabbitMQ入门教程(十一):消息属性Properties

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/vbirdbest/article/details/78698364
分享一个朋友的人工智能教程。比较通俗易懂,风趣幽默,感兴趣的朋友可以去看看。

简介

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

  • 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: 消息内容

技术分享图片


分享一个朋友的人工智能教程。比较通俗易懂,风趣幽默,感兴趣的朋友可以去看看。

我的微信公众号:

技术分享图片

RabbitMQ入门教程(十一):消息属性Properties

原文:https://www.cnblogs.com/lonelyxmas/p/11865807.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!