Class: Fluent::KafkaInput::TopicEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic, partition, offset) ⇒ TopicEntry

Returns a new instance of TopicEntry.



351
352
353
354
355
# File 'lib/fluent/plugin/in_kafka.rb', line 351

def initialize(topic, partition, offset)
  @topic = topic
  @partition = partition
  @offset = offset
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



356
357
358
# File 'lib/fluent/plugin/in_kafka.rb', line 356

def offset
  @offset
end

#partitionObject (readonly)

Returns the value of attribute partition.



356
357
358
# File 'lib/fluent/plugin/in_kafka.rb', line 356

def partition
  @partition
end

#topicObject (readonly)

Returns the value of attribute topic.



356
357
358
# File 'lib/fluent/plugin/in_kafka.rb', line 356

def topic
  @topic
end