Optional application identifier message-property.
Optional application identifier message-property. Useful to help indicate which application generated a message.
Application use only: RabbitMQ does not read, set, or use this parameter.
Optional contentEncoding message-property.
Optional contentEncoding message-property. Op-Rabbit's serialization layer will automatically set / read this for you.
Application use only: RabbitMQ does not read, set, or use this parameter.
Optional contentType message-property.
Optional contentType message-property. Op-Rabbit's serialization layer will automatically set / read this for you.
Application use only: RabbitMQ does not read, set, or use this parameter.
Optional correlationId message-property.
Optional correlationId message-property. Useful when doing RPC over message queue. When requesting a response, set correlationId to some unique string value (a UUID?); when responding, send this same correlationId.
Application use only: RabbitMQ does not read, set, or use this parameter.
Property used to inform RabbitMQ of message handling; IE - should the message be persisted to disk, in case of a Broker restart?
Property used to inform RabbitMQ of message handling; IE - should the message be persisted to disk, in case of a Broker restart?
RabbitMQ uses an integer to represent these two states, 1 for non-persistent, 2 for persistent. To reduce confusion, Op-Rabbit maps these integers to a boolean.
Note, RabbitMQ's default behavior is to NOT persist messages. Also, it is pointless to deliver persistent messages to a non-durable message queue. Further, non-persistent messages in a durable queue WILL NOT survive broker restart (unless replication has been configured using an HA policy).
Optional expiration message-property.
Optional expiration message-property.
Application use only: RabbitMQ does not read, set, or use this parameter. If you want messages to expire, see TTL.
Trait which describes converters that convert a HeaderValue from one type to another.
Header describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is unknown, but the subspace of valid RabbitMQ types are modeled with HeaderValue, preventing accidental usage of an unsupported type by RabbitMQ.
Header describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is unknown, but the subspace of valid RabbitMQ types are modeled with HeaderValue, preventing accidental usage of an unsupported type by RabbitMQ.
If you use custom headers, using TypedHeader is preferred over Header.
You can instantiate an UnboundHeader for use in both reading and writing the header:
val RetryHeader = Header("x-retry") Subscription { channel() { consume(queue("name")) { property(RetryHeader.as[Int]) { retries => // ... ack } } } } rabbitControl ! QueueMessage("My body", "name", Seq(RetryHeader(5)))
Trait which represents all values allowed in property generc headers
Trait which represents all values allowed in property generc headers
See the source for com.rabbitmq.client.impl.ValueReader.readFieldValue
Optional messageId message-property.
Optional messageId message-property.
Application use only: RabbitMQ does not read, set, or use this parameter.
Property used to inform RabbitMQ of message priority.
Property used to inform RabbitMQ of message priority. Destination queue must be configured as a priority queue. Priority Queue Support.
Optional replyTo message-property.
Optional replyTo message-property. Useful when doing RPC over message queues.
Application use only: RabbitMQ does not read, set, or use this parameter.
Optional timestamp message-property.
Optional timestamp message-property.
Application use only: RabbitMQ does not read, set, or use this parameter.
Optional Type message-property.
Optional Type message-property.
Application use only: RabbitMQ does not read, set, or use this parameter.
TypedHeader describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is known, and implicit proof is required to prove that the type can be safely converted to a supported RabbitMQ type.
TypedHeader describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is known, and implicit proof is required to prove that the type can be safely converted to a supported RabbitMQ type.
If you use custom headers, using TypedHeader is preferred over Header. For example, if you use the header
x-retry
, and this header contains an integer, using TypedHeader to extract and set the header will enable the
type system enforce that fact:
val RetryHeader = TypedHeader[Int]("x-retry") Subscription { channel() { consume(queue("name")) { property(RetryHeader) { retries: Int => // ... ack } } } } rabbitControl ! QueueMessage("My body", "name", Seq(RetryHeader(5)))
Describes a Header without a value.
Describes a Header without a value. Can be used in conjunction with Directives.property to extract a HeaderValue from messages. Also, cab be applied with a HeaderValue to create a Header.
Describes a TypedHeader without a value.
Describes a TypedHeader without a value. Can be used in conjunction with Directives.property to extract a T from a message's headers. Also, can be applied with T to created a TypedHeader.
Rather than instantiate these directly, use TypedHeader$.{{apply}}.
See TypedHeader
Optional User Id message-property.
Optional User Id message-property. This property IS used by RabbitMQ, and should VERY LIKELY NOT be used with application User Ids. For more information, read http://www.rabbitmq.com/validated-user-id.html
See Header
See TypedHeader