Class: Rdkafka::Admin::DescribeAclHandle

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

Constant Summary

Constants inherited from Rdkafka::AbstractHandle

Rdkafka::AbstractHandle::REGISTRY

Instance Method Summary collapse

Methods inherited from Rdkafka::AbstractHandle

#pending?, register, remove, #wait

Methods included from Helpers::Time

#monotonic_now

Instance Method Details

#create_resultDescribeAclReport

Returns instance with an array of acls that matches the request filters.

Returns:

  • (DescribeAclReport)

    instance with an array of acls that matches the request filters.



18
19
20
# File 'lib/rdkafka/admin/describe_acl_handle.rb', line 18

def create_result
  DescribeAclReport.new(acls: self[:acls], acls_count: self[:acls_count])
end

#operation_nameString

Returns the name of the operation.

Returns:

  • (String)

    the name of the operation.



13
14
15
# File 'lib/rdkafka/admin/describe_acl_handle.rb', line 13

def operation_name
  "describe acl"
end

#raise_errorObject

Raises:



22
23
24
25
26
27
# File 'lib/rdkafka/admin/describe_acl_handle.rb', line 22

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