分享一个朋友的人工智能教程。比较通俗易懂,风趣幽默,感兴趣的朋友可以去看看。
简介
发送消息可以为消息指定一些参数
- 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: 消息的失效时间