Class: Kafka::Protocol::DescribeGroupsRequest
- Inherits:
-
Object
- Object
- Kafka::Protocol::DescribeGroupsRequest
- Defined in:
- lib/kafka/protocol/describe_groups_request.rb
Instance Method Summary collapse
- #api_key ⇒ Object
- #api_version ⇒ Object
- #encode(encoder) ⇒ Object
-
#initialize(group_ids:) ⇒ DescribeGroupsRequest
constructor
A new instance of DescribeGroupsRequest.
- #response_class ⇒ Object
Constructor Details
#initialize(group_ids:) ⇒ DescribeGroupsRequest
Returns a new instance of DescribeGroupsRequest.
6 7 8 |
# File 'lib/kafka/protocol/describe_groups_request.rb', line 6 def initialize(group_ids:) @group_ids = group_ids end |
Instance Method Details
#api_key ⇒ Object
10 11 12 |
# File 'lib/kafka/protocol/describe_groups_request.rb', line 10 def api_key DESCRIBE_GROUPS_API end |
#api_version ⇒ Object
14 15 16 |
# File 'lib/kafka/protocol/describe_groups_request.rb', line 14 def api_version 0 end |
#encode(encoder) ⇒ Object
22 23 24 |
# File 'lib/kafka/protocol/describe_groups_request.rb', line 22 def encode(encoder) encoder.write_array(@group_ids) { |group_id| encoder.write_string(group_id) } end |
#response_class ⇒ Object
18 19 20 |
# File 'lib/kafka/protocol/describe_groups_request.rb', line 18 def response_class Protocol::DescribeGroupsResponse end |