Class: Rdkafka::Producer::DeliveryReport

Inherits:
Object
  • Object
show all
Defined in:
lib/rdkafka/producer/delivery_report.rb

Overview

Delivery report for a successfully produced message.

Instance Attribute Summary collapse

Instance Attribute Details

#errorInteger (readonly)

Error in case happen during produce.

Returns:

  • (Integer)


21
22
23
# File 'lib/rdkafka/producer/delivery_report.rb', line 21

def error
  @error
end

#offsetInteger (readonly)

The offset of the produced message.

Returns:

  • (Integer)


13
14
15
# File 'lib/rdkafka/producer/delivery_report.rb', line 13

def offset
  @offset
end

#partitionInteger (readonly)

The partition this message was produced to.

Returns:

  • (Integer)


9
10
11
# File 'lib/rdkafka/producer/delivery_report.rb', line 9

def partition
  @partition
end

#topic_nameString (readonly)

The name of the topic this message was produced to.

Returns:

  • (String)


17
18
19
# File 'lib/rdkafka/producer/delivery_report.rb', line 17

def topic_name
  @topic_name
end