pub struct MemberMetadata {
pub id: String,
pub group_instance_id: String,
pub client_id: String,
pub client_host: String,
pub rebalance_timeout: i32,
pub session_timeout: i32,
pub subscription: ConsumerProtocolSubscription,
pub assignment: ConsumerProtocolAssignment,
}Expand description
Metadata for a Consumer Group Member.
Note that the words “Member” and “Consumer” can be used interchangeably in this context.
Fields§
§id: StringConsumer Group Member identifier.
group_instance_id: StringMember Group Instance identifier.
client_id: StringConsumer Client identifier.
This corresponds to the Kafka (client) configuration option client.id.
client_host: StringConsumer Client host.
Usually its IP.
rebalance_timeout: i32Maximum time (ms) that Group Coordinator will wait for member to rejoin when rebalancing the GroupMetadata::group.
session_timeout: i32Group Coordinator considers member (i.e. consumer) “dead” if it receives no heartbeat after this timeout (ms).
If the container GroupMetadata::schema_version is 0, this is used by
the Group Coordinator in place of Self::rebalance_timeout.
subscription: ConsumerProtocolSubscriptionConsumer topic and partition subscriptions.
This is what the consumer explicitly subscribes to:
either this or assignment is populated, but usually not both.
assignment: ConsumerProtocolAssignmentConsumer partition assignment by the [Group Coordinator].
This is what the consumer is assigned by the [Group Coordinator]:
either this or subscription is populated, but usually not both.
Trait Implementations§
Source§impl Clone for MemberMetadata
impl Clone for MemberMetadata
Source§fn clone(&self) -> MemberMetadata
fn clone(&self) -> MemberMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more