Class: Kafka::Protocol::GroupCoordinatorRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/group_coordinator_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(group_id:) ⇒ GroupCoordinatorRequest

Returns a new instance of GroupCoordinatorRequest.


4
5
6
# File 'lib/kafka/protocol/group_coordinator_request.rb', line 4

def initialize(group_id:)
  @group_id = group_id
end

Instance Method Details

#api_keyObject


8
9
10
# File 'lib/kafka/protocol/group_coordinator_request.rb', line 8

def api_key
  10
end

#encode(encoder) ⇒ Object


12
13
14
# File 'lib/kafka/protocol/group_coordinator_request.rb', line 12

def encode(encoder)
  encoder.write_string(@group_id)
end

#response_classObject


16
17
18
# File 'lib/kafka/protocol/group_coordinator_request.rb', line 16

def response_class
  GroupCoordinatorResponse
end