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 :
pending_message.rb
back
Copy
module Kafka class PendingMessage attr_reader :value, :key, :topic, :partition, :partition_key, :create_time, :bytesize def initialize(value, key, topic, partition, partition_key, create_time) @value = value @key = key @topic = topic @partition = partition @partition_key = partition_key @create_time = create_time @bytesize = key.to_s.bytesize + value.to_s.bytesize end end end