Sha256: d45ba1cdf452f7a35ad1017cffad9a29276ce0cf1999ea9f6648be45b6c32a11

Contents?: true

Size: 671 Bytes

Versions: 39

Compression:

Stored size: 671 Bytes

Contents

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ruby-kafka-0.4.4 lib/kafka/fetched_message.rb
ruby-kafka-0.4.3 lib/kafka/fetched_message.rb
ruby-kafka-0.4.2 lib/kafka/fetched_message.rb
ruby-kafka-0.4.1 lib/kafka/fetched_message.rb
ruby-kafka-0.4.0 lib/kafka/fetched_message.rb
ruby-kafka-0.4.0.beta1 lib/kafka/fetched_message.rb
ruby-kafka-0.3.18.beta2 lib/kafka/fetched_message.rb
ruby-kafka-0.3.18.beta1 lib/kafka/fetched_message.rb
ruby-kafka-0.3.17 lib/kafka/fetched_message.rb
ruby-kafka-0.3.16 lib/kafka/fetched_message.rb
ruby-kafka-0.3.16.beta2 lib/kafka/fetched_message.rb
ruby-kafka-0.3.16.beta1 lib/kafka/fetched_message.rb
ruby-kafka-0.3.15 lib/kafka/fetched_message.rb
ruby-kafka-0.3.15.beta3 lib/kafka/fetched_message.rb
ruby-kafka-0.3.15.beta2 lib/kafka/fetched_message.rb
ruby-kafka-0.3.15.beta1 lib/kafka/fetched_message.rb
ruby-kafka-0.3.14 lib/kafka/fetched_message.rb
ruby-kafka-0.3.13.beta4 lib/kafka/fetched_message.rb
ruby-kafka-0.3.13.beta3 lib/kafka/fetched_message.rb
ruby-kafka-0.3.13.beta2 lib/kafka/fetched_message.rb