D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
ruby-kafka-0.4.2
/
lib
/
kafka
/
Filename :
fetched_message.rb
back
Copy
module Kafka class FetchedMessage # @return [String] the value of the message. attr_reader :value # @return [String] the key of the message. attr_reader :key # @return [String] the name of the topic that the message was written to. attr_reader :topic # @return [Integer] the partition number that the message was written to. attr_reader :partition # @return [Integer] the offset of the message in the partition. attr_reader :offset def initialize(value:, key:, topic:, partition:, offset:) @value = value @key = key @topic = topic @partition = partition @offset = offset end end end