Class: Karafka::Messages::Metadata
- Inherits:
-
Struct
- Object
- Struct
- Karafka::Messages::Metadata
- Defined in:
- lib/karafka/messages/metadata.rb
Overview
Single message metadata details that can be accessed without the need of deserialization.
Instance Attribute Summary collapse
-
#deserializer ⇒ Object
Returns the value of attribute deserializer.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#key ⇒ Object
Returns the value of attribute key.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#partition ⇒ Object
Returns the value of attribute partition.
-
#received_at ⇒ Object
Returns the value of attribute received_at.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#topic ⇒ Object
Returns the value of attribute topic.
Instance Attribute Details
#deserializer ⇒ Object
Returns the value of attribute deserializer
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def deserializer @deserializer end |
#headers ⇒ Object
Returns the value of attribute headers
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def headers @headers end |
#key ⇒ Object
Returns the value of attribute key
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def key @key end |
#offset ⇒ Object
Returns the value of attribute offset
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def offset @offset end |
#partition ⇒ Object
Returns the value of attribute partition
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def partition @partition end |
#received_at ⇒ Object
Returns the value of attribute received_at
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def received_at @received_at end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def @timestamp end |
#topic ⇒ Object
Returns the value of attribute topic
6 7 8 |
# File 'lib/karafka/messages/metadata.rb', line 6 def topic @topic end |