Class: Karafka::Params::BatchMetadata
- Inherits:
-
Struct
- Object
- Struct
- Karafka::Params::BatchMetadata
- Defined in:
- lib/karafka/params/batch_metadata.rb
Overview
This metadata object refers to per batch metadata, not `#params.metadata`
Simple batch metadata object that stores all non-message information received from Kafka cluster while fetching the data
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#deserializer ⇒ Object
Returns the value of attribute deserializer.
-
#first_offset ⇒ Object
Returns the value of attribute first_offset.
-
#highwater_mark_offset ⇒ Object
Returns the value of attribute highwater_mark_offset.
-
#last_offset ⇒ Object
Returns the value of attribute last_offset.
-
#offset_lag ⇒ Object
Returns the value of attribute offset_lag.
-
#partition ⇒ Object
Returns the value of attribute partition.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#unknown_last_offset ⇒ Object
Returns the value of attribute unknown_last_offset.
Instance Method Summary collapse
-
#unknown_last_offset? ⇒ Boolean
Is the last offset known or unknown.
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def batch_size @batch_size end |
#deserializer ⇒ Object
Returns the value of attribute deserializer
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def deserializer @deserializer end |
#first_offset ⇒ Object
Returns the value of attribute first_offset
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def first_offset @first_offset end |
#highwater_mark_offset ⇒ Object
Returns the value of attribute highwater_mark_offset
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def highwater_mark_offset @highwater_mark_offset end |
#last_offset ⇒ Object
Returns the value of attribute last_offset
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def last_offset @last_offset end |
#offset_lag ⇒ Object
Returns the value of attribute offset_lag
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def offset_lag @offset_lag end |
#partition ⇒ Object
Returns the value of attribute partition
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def partition @partition end |
#topic ⇒ Object
Returns the value of attribute topic
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def topic @topic end |
#unknown_last_offset ⇒ Object
Returns the value of attribute unknown_last_offset
8 9 10 |
# File 'lib/karafka/params/batch_metadata.rb', line 8 def unknown_last_offset @unknown_last_offset end |
Instance Method Details
#unknown_last_offset? ⇒ Boolean
Returns is the last offset known or unknown.
21 22 23 |
# File 'lib/karafka/params/batch_metadata.rb', line 21 def unknown_last_offset? unknown_last_offset end |