add(
member: MemberMetadata,
callback: JoinCallback = null): Unit
GroupMetadata — Metadata of Consumer Group
GroupMetadata is the metadata of a consumer group.
GroupMetadata takes the following to be created:
GroupMetadata uses the states to describe the state of a consumer group.
| State | Description |
|---|---|
|
Transitioned to when:
|
|
Transitioned to when:
|
|
Transitioned to when:
|
|
Transitioned to when:
|
|
Transitioned to when:
|
GroupMetadata defines validPreviousStates internal registry of the valid previous states per state.
| State | Valid Previous States |
|---|---|
Stable, PreparingRebalance, CompletingRebalance, Empty, Dead |
|
GroupMetadata is created when:
-
GroupCoordinatoris requested to handleJoinGroup, handleTxnCommitOffsets and handleCommitOffsets -
GroupMetadatais requested to loadGroup -
GroupMetadataManageris requested to doLoadGroupsAndOffsets
| Name | Description |
|---|---|
|
Starts at |
|
ID of the Kafka Consumer that is the leader of the consumer group Starts empty ( Used when isLeader and leaderOrNull |
|
Registering Consumer with Consumer Group — add Method
add…FIXME
|
Note
|
|
Loading Consumer Group Metadata — loadGroup Factory Method
loadGroup(
groupId: String,
initialState: GroupState,
generationId: Int,
protocolType: String,
protocol: String,
leaderId: String,
currentStateTimestamp: Option[Long],
members: Iterable[MemberMetadata],
time: Time): GroupMetadata
loadGroup…FIXME
|
Note
|
loadGroup is used exclusively when GroupMetadataManager is requested to readGroupMessageValue.
|
Unregistering Consumer from Consumer Group — remove Method
remove(memberId: String): Unit
remove…FIXME
|
Note
|
remove is used when GroupCoordinator is requested to removeMemberAndUpdateGroup and onCompleteJoin.
|
Changing State of Consumer Group — transitionTo Method
transitionTo(groupState: GroupState): Unit
transitionTo…FIXME
|
Note
|
transitionTo is used when…FIXME
|
initNextGeneration Method
initNextGeneration(): Unit
initNextGeneration…FIXME
|
Note
|
initNextGeneration is used exclusively when GroupCoordinator is requested to onCompleteJoin.
|
Asserting No Offets in Use — hasOffsets Method
hasOffsets: Boolean
hasOffsets…FIXME
|
Note
|
hasOffsets is used exclusively when GroupMetadataManager is requested to cleanupGroupMetadata
|