Sha256: 365df84bcbc8c108ba8eb8646cb7462dd55cd97fc6a6d219c1f1468e62340fdf
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
module Rdkafka class Producer # Handle to wait for a delivery report which is returned when # producing a message. class DeliveryHandle < Rdkafka::AbstractHandle layout :pending, :bool, :response, :int, :partition, :int, :offset, :int64, :topic_name, :pointer # @return [String] the name of the operation (e.g. "delivery") def operation_name "delivery" end # @return [DeliveryReport] a report on the delivery of the message def create_result DeliveryReport.new(self[:partition], self[:offset], self[:topic_name].read_string) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
karafka-rdkafka-0.12.4 | lib/rdkafka/producer/delivery_handle.rb |
karafka-rdkafka-0.12.3 | lib/rdkafka/producer/delivery_handle.rb |