class

Crabbit::Header

Inherits Reference < Object

AMQP 1.0 header section.

All fields are optional. Values left as nil are omitted from the trailing portion of the encoded composite where possible.

Constructors

new(durable : Bool | Nil = nil, priority : UInt8 | Nil = nil, ttl : UInt32 | Nil = nil, first_acquirer : Bool | Nil = nil, delivery_count : UInt32 | Nil = nil)

Creates an AMQP header section.

Source

Instance methods

delivery_count

Counts prior unsuccessful delivery attempts.

Source
delivery_count=(delivery_count : UInt32 | Nil)

Counts prior unsuccessful delivery attempts.

Source
durable

Controls whether the message should survive node failure.

Source
durable=(durable : Bool | Nil)

Controls whether the message should survive node failure.

Source
first_acquirer

Indicates whether the message was acquired by its first consumer.

Source
first_acquirer=(first_acquirer : Bool | Nil)

Indicates whether the message was acquired by its first consumer.

Source
priority

Indicates relative message priority.

Source
priority=(priority : UInt8 | Nil)

Indicates relative message priority.

Source
ttl

Specifies time-to-live in milliseconds.

Source
ttl=(ttl : UInt32 | Nil)

Specifies time-to-live in milliseconds.

Source