Class: Kafka::FFI::GroupList

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/kafka/ffi/group_list.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

Release the resources used by the group list back to the system



23
24
25
# File 'lib/kafka/ffi/group_list.rb', line 23

def destroy
  ::Kafka::FFI.rd_kafka_group_list_destroy(self)
end

#groupsArray<GroupInfo>

Returns information about the consumer groups in the cluster.

Returns:



16
17
18
19
20
# File 'lib/kafka/ffi/group_list.rb', line 16

def groups
  self[:group_cnt].times.map do |i|
    GroupInfo.new(self[:groups] + (i * GroupInfo.size))
  end
end