Class: Kafka::FFI::Admin::DeleteTopic

Inherits:
OpaquePointer show all
Defined in:
lib/kafka/ffi/admin/delete_topic.rb

Instance Attribute Summary

Attributes inherited from OpaquePointer

#pointer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OpaquePointer

by_ref, from_native, inherited, #initialize, to_native

Constructor Details

This class inherits a constructor from Kafka::FFI::OpaquePointer

Class Method Details

.new(topic) ⇒ Object



7
8
9
# File 'lib/kafka/ffi/admin/delete_topic.rb', line 7

def self.new(topic)
  ::Kafka::FFI.rd_kafka_DeleteTopic_new(topic)
end

Instance Method Details

#destroyObject

Release the resources used by the DeleteTopic. It is the application’s responsibility to call #destroy when it is done with the object.



13
14
15
16
17
# File 'lib/kafka/ffi/admin/delete_topic.rb', line 13

def destroy
  if !pointer.null?
    ::Kafka::FFI.rd_kafka_DeleteTopic_destroy(self)
  end
end