class
Crabbit::Header
- Crabbit::Header
- Reference
- Object
Overview
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.
Defined in:
crabbit/message.crConstructors
-
.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.
Instance Method Summary
-
#delivery_count : UInt32 | Nil
Counts prior unsuccessful delivery attempts.
-
#delivery_count=(delivery_count : UInt32 | Nil)
Counts prior unsuccessful delivery attempts.
-
#durable : Bool | Nil
Controls whether the message should survive node failure.
-
#durable=(durable : Bool | Nil)
Controls whether the message should survive node failure.
-
#first_acquirer : Bool | Nil
Indicates whether the message was acquired by its first consumer.
-
#first_acquirer=(first_acquirer : Bool | Nil)
Indicates whether the message was acquired by its first consumer.
-
#priority : UInt8 | Nil
Indicates relative message priority.
-
#priority=(priority : UInt8 | Nil)
Indicates relative message priority.
-
#ttl : UInt32 | Nil
Specifies time-to-live in milliseconds.
-
#ttl=(ttl : UInt32 | Nil)
Specifies time-to-live in milliseconds.
Constructor Detail
Creates an AMQP header section.
Instance Method Detail
Indicates whether the message was acquired by its first consumer.