View Source KafkaEx.Messages.ConsumerGroupDescription.Member (kafka_ex v1.0.0-rc.1)

Information about a member of a consumer group.

Java equivalent: org.apache.kafka.clients.admin.MemberDescription

Contains identifying information about a consumer group member and their current partition assignment.

Summary

Functions

Returns the member's current partition assignment.

Returns the client host.

Returns the client ID.

Builds a Member from a DescribeGroups API response.

Returns the member ID.

Types

@type partial_response() :: %{
  :member_id => binary(),
  :client_id => binary(),
  :client_host => binary(),
  :member_metadata => term(),
  optional(:member_assignment) => map() | nil
}
@type t() :: %KafkaEx.Messages.ConsumerGroupDescription.Member{
  client_host: binary(),
  client_id: binary(),
  group_instance_id: binary() | nil,
  member_assignment:
    KafkaEx.Messages.ConsumerGroupDescription.Member.MemberAssignment.t() | nil,
  member_id: binary(),
  member_metadata: term()
}

Functions

Returns the member's current partition assignment.

@spec client_host(t()) :: binary()

Returns the client host.

@spec client_id(t()) :: binary()

Returns the client ID.

Link to this function

from_describe_group_response(response)

View Source
@spec from_describe_group_response(partial_response()) :: t()

Builds a Member from a DescribeGroups API response.

@spec member_id(t()) :: binary()

Returns the member ID.