rabbitmq 1.0.0

Download zip

class: RabbitMqMessage

[44:14] (extern: com.lehman.aussom.RabbitMqMessage) extends: object

A RabbitMQ message, in both directions. Outgoing: construct (with an optional message map), set the body and properties, publish through a channel. Incoming: returned by get()/receive() and the listener, carrying the envelope (exchange, routing key, delivery tag, redeliver flag) plus ack convenience backed by the channel it arrived on. The message-map shape used by the constructor, fromMap(), toMap(), and channel.publish() (every key optional): { "body": "text" | buffer, "contentType": "application/json", "contentEncoding": "utf-8", "persistent": true, // or "deliveryMode": 1|2 "priority": 5, "correlationId": "abc", "replyTo": "q.replies", "expiration": "60000", "messageId": "m-1", "timestamp": 1780000000000, "type": "order", "userId": "orders", "appId": "shop", "headers": { ... } // nested map, deep-converted } Bodies are plain bytes: there is no typed message hierarchy and no object deserialization surface.

Methods