Sha256: 49d9eefaf5af4ea99a0b5c74512f3c9b0648b4958645d83c2166b149c1819b59
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 Bytes
Contents
module Kafka class PendingMessage attr_reader :value, :key, :topic, :partition, :partition_key attr_reader :bytesize, :create_time def initialize(value:, key:, topic:, partition:, partition_key:, create_time:) @key = key @value = value @topic = topic @partition = partition @partition_key = partition_key @create_time = create_time @bytesize = key.to_s.bytesize + value.to_s.bytesize end end end
Version data entries
7 entries across 7 versions & 1 rubygems