Class: Fluent::Plugin::RdKafkaGroupInput::Batch
- Inherits:
-
Object
- Object
- Fluent::Plugin::RdKafkaGroupInput::Batch
- Defined in:
- lib/fluent/plugin/in_rdkafka_group.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic) ⇒ Batch
constructor
A new instance of Batch.
Constructor Details
#initialize(topic) ⇒ Batch
Returns a new instance of Batch.
194 195 196 197 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 194 def initialize(topic) @topic = topic @messages = [] end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
192 193 194 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 192 def @messages end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
191 192 193 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 191 def topic @topic end |