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.
173 174 175 176 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 173 def initialize(topic) @topic = topic @messages = [] end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
171 172 173 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 171 def @messages end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
170 171 172 |
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 170 def topic @topic end |