Class: Rdkafka::Producer::DeliveryReport
- Inherits:
-
Object
- Object
- Rdkafka::Producer::DeliveryReport
- Defined in:
- lib/rdkafka/producer/delivery_report.rb
Overview
Delivery report for a successfully produced message.
Instance Attribute Summary collapse
-
#error ⇒ Integer
readonly
Error in case happen during produce.
-
#label ⇒ Object?
readonly
Label set during message production or nil by default.
-
#offset ⇒ Integer
readonly
The offset of the produced message.
-
#partition ⇒ Integer
readonly
The partition this message was produced to.
-
#topic_name ⇒ String?
(also: #topic)
readonly
The name of the topic this message was produced to or nil in case delivery failed and we we not able to get the topic reference.
Instance Attribute Details
#error ⇒ Integer (readonly)
Error in case happen during produce.
22 23 24 |
# File 'lib/rdkafka/producer/delivery_report.rb', line 22 def error @error end |
#label ⇒ Object? (readonly)
Returns label set during message production or nil by default.
25 26 27 |
# File 'lib/rdkafka/producer/delivery_report.rb', line 25 def label @label end |
#offset ⇒ Integer (readonly)
The offset of the produced message.
13 14 15 |
# File 'lib/rdkafka/producer/delivery_report.rb', line 13 def offset @offset end |
#partition ⇒ Integer (readonly)
The partition this message was produced to.
9 10 11 |
# File 'lib/rdkafka/producer/delivery_report.rb', line 9 def partition @partition end |
#topic_name ⇒ String? (readonly) Also known as: topic
The name of the topic this message was produced to or nil in case delivery failed and we we not able to get the topic reference
18 19 20 |
# File 'lib/rdkafka/producer/delivery_report.rb', line 18 def topic_name @topic_name end |