Class: Rdkafka::Admin::DeleteAclHandle

Inherits:
Rdkafka::AbstractHandle show all
Defined in:
lib/rdkafka/admin/delete_acl_handle.rb

Overview

Handle for delete ACL operation

Constant Summary

Constants inherited from Rdkafka::AbstractHandle

Rdkafka::AbstractHandle::REGISTRY

Instance Method Summary collapse

Methods inherited from Rdkafka::AbstractHandle

#initialize, #pending?, register, remove, #unlock, #wait

Methods included from Helpers::Time

#monotonic_now, #monotonic_now_ms

Constructor Details

This class inherits a constructor from Rdkafka::AbstractHandle

Instance Method Details

#create_resultDeleteAclReport

Returns instance with an array of matching_acls.

Returns:



19
20
21
# File 'lib/rdkafka/admin/delete_acl_handle.rb', line 19

def create_result
  DeleteAclReport.new(matching_acls: self[:matching_acls], matching_acls_count: self[:matching_acls_count])
end

#operation_nameString

Returns the name of the operation.

Returns:

  • (String)

    the name of the operation



14
15
16
# File 'lib/rdkafka/admin/delete_acl_handle.rb', line 14

def operation_name
  "delete acl"
end

#raise_errorObject

Raises an error if the operation failed

Raises:



25
26
27
28
29
30
# File 'lib/rdkafka/admin/delete_acl_handle.rb', line 25

def raise_error
  raise RdkafkaError.new(
    self[:response],
    broker_message: self[:response_string].read_string
  )
end