Sha256: b7fee0870246edc9824d5c0900c3d3758506857fc33321684ad42d7f39d38ad0

Contents?: true

Size: 592 Bytes

Versions: 13

Compression:

Stored size: 592 Bytes

Contents

module Rdkafka
  class Producer
    # Delivery report for a successfully produced message.
    class DeliveryReport
      # The partition this message was produced to.
      # @return [Integer]
      attr_reader :partition

      # The offset of the produced message.
      # @return [Integer]
      attr_reader :offset

      # Error in case happen during produce.
      # @return [String]
      attr_reader :error

      private

      def initialize(partition, offset, error = nil)
        @partition = partition
        @offset = offset
        @error = error
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
rdkafka-0.12.1 lib/rdkafka/producer/delivery_report.rb
karafka-rdkafka-0.12.2 lib/rdkafka/producer/delivery_report.rb
karafka-rdkafka-0.12.1 lib/rdkafka/producer/delivery_report.rb
karafka-rdkafka-0.12.1.beta1 lib/rdkafka/producer/delivery_report.rb
karafka-rdkafka-0.12.0 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0.beta.4 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0.beta.3 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0.beta.2 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0.beta.1 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.12.0.beta.0 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.11.1 lib/rdkafka/producer/delivery_report.rb
rdkafka-0.11.0 lib/rdkafka/producer/delivery_report.rb