Class: Rdkafka::Admin::DeleteTopicHandle
- Inherits:
-
Rdkafka::AbstractHandle
- Object
- FFI::Struct
- Rdkafka::AbstractHandle
- Rdkafka::Admin::DeleteTopicHandle
- Defined in:
- lib/rdkafka/admin/delete_topic_handle.rb
Constant Summary
Constants inherited from Rdkafka::AbstractHandle
Rdkafka::AbstractHandle::REGISTRY
Instance Method Summary collapse
-
#create_result ⇒ Boolean
Whether the delete topic was successful.
-
#operation_name ⇒ String
The name of the operation.
- #raise_error ⇒ Object
Methods inherited from Rdkafka::AbstractHandle
#initialize, #pending?, register, remove, #unlock, #wait
Methods included from Helpers::Time
Constructor Details
This class inherits a constructor from Rdkafka::AbstractHandle
Instance Method Details
#create_result ⇒ Boolean
Returns whether the delete topic was successful.
17 18 19 |
# File 'lib/rdkafka/admin/delete_topic_handle.rb', line 17 def create_result DeleteTopicReport.new(self[:error_string], self[:result_name]) end |
#operation_name ⇒ String
Returns the name of the operation.
12 13 14 |
# File 'lib/rdkafka/admin/delete_topic_handle.rb', line 12 def operation_name "delete topic" end |
#raise_error ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rdkafka/admin/delete_topic_handle.rb', line 21 def raise_error raise RdkafkaError.new( self[:response], broker_message: DeleteTopicReport.new(self[:error_string], self[:result_name]).error_string ) end |