Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KafkaRoundRobinPartitionAssigner

Hierarchy

  • KafkaRoundRobinPartitionAssigner

Index

Constructors

constructor

Properties

Private Readonly config

config: { cluster: Cluster }

Type declaration

  • cluster: Cluster

Readonly name

name: "RoundRobinByTime" = "RoundRobinByTime"

Readonly version

version: 1 = 1

Methods

assign

  • assign(group: { members: GroupMember[]; topics: string[]; userData: Buffer }): Promise<GroupMemberAssignment[]>

getTime

  • getTime(): [number, number]

mapToTimeAndMemberId

  • mapToTimeAndMemberId(member: GroupMember): { memberId: string; time: any }

protocol

  • protocol(subscription: { topics: string[]; userData: Buffer }): GroupState

sortByTime

  • sortByTime(a: Record<"time", number[]>, b: Record<"time", number[]>): number

Generated using TypeDoc