Class: AceMQ::AMQP::Patterns::OutboxRecord
- Inherits:
-
Struct
- Object
- Struct
- AceMQ::AMQP::Patterns::OutboxRecord
- Defined in:
- lib/acemq/amqp/patterns/outbox.rb
Overview
A message that has been decided but not yet published.
body is bytes rather than an object, and that is the important part: a
record outlives the process that wrote it, and the class it was encoded
from may not survive the deployment that happens while it is waiting.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#exchange ⇒ Object
Returns the value of attribute exchange.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#id ⇒ Object
Returns the value of attribute id.
-
#routing_key ⇒ Object
Returns the value of attribute routing_key.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def body @body end |
#content_type ⇒ Object
Returns the value of attribute content_type
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def content_type @content_type end |
#created_at ⇒ Object
Returns the value of attribute created_at
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def created_at @created_at end |
#exchange ⇒ Object
Returns the value of attribute exchange
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def exchange @exchange end |
#headers ⇒ Object
Returns the value of attribute headers
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def headers @headers end |
#id ⇒ Object
Returns the value of attribute id
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def id @id end |
#routing_key ⇒ Object
Returns the value of attribute routing_key
40 41 42 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 40 def routing_key @routing_key end |
Instance Method Details
#to_s ⇒ Object
44 |
# File 'lib/acemq/amqp/patterns/outbox.rb', line 44 def to_s = "#{id} -> #{exchange.empty? ? "(default)" : exchange}/#{routing_key}" |