Skip to content

Commit

Permalink
Merge pull request #951 from ankon/pr/consumer-group-state
Browse files Browse the repository at this point in the history
Document the possible values for the state of a consumer group
  • Loading branch information
Nevon committed Nov 11, 2020
2 parents a46d2a0 + 05bf209 commit daeec89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,15 @@ export type MemberDescription = {
memberMetadata: Buffer
}

// See https://github.com/apache/kafka/blob/2.4.0/clients/src/main/java/org/apache/kafka/common/ConsumerGroupState.java#L25
export type ConsumerGroupState = 'Unknown' | 'PreparingRebalance' | 'CompletingRebalance' | 'Stable' | 'Dead' | 'Empty';

export type GroupDescription = {
groupId: string
members: MemberDescription[]
protocol: string
protocolType: string
state: string
state: ConsumerGroupState
}

export type GroupDescriptions = {
Expand Down

0 comments on commit daeec89

Please sign in to comment.