Class: Fluent::Plugin::RdKafkaGroupInput::Batch

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/in_rdkafka_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messagesObject (readonly)

Returns the value of attribute messages.



192
193
194
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 192

def messages
  @messages
end

#topicObject (readonly)

Returns the value of attribute topic.



191
192
193
# File 'lib/fluent/plugin/in_rdkafka_group.rb', line 191

def topic
  @topic
end