AbstractPartitionAssignor

Note
AbstractPartitionAssignor is a Java abstract class and cannot be created directly. It is created indirectly for the concrete PartitionAssignors.
Table 1. AbstractPartitionAssignor Contract
Method Description

assign

Map<String, List<TopicPartition>> assign(
  Map<String, Integer> partitionsPerTopic,
  Map<String, Subscription> subscriptions)

Performs group assignment given partition counts and member subscriptions

Used exclusively when requested to assign (given cluster metadata and member subscriptions)

Table 2. AbstractPartitionAssignors
AbstractPartitionAssignor Description

RangeAssignor

RoundRobinAssignor

StickyAssignor

assign Method

Map<String, Assignment> assign(
  Cluster metadata,
  Map<String, Subscription> subscriptions)
Note
assign is part of the PartitionAssignor Contract to perform group assignment given cluster metadata and member subscriptions.

assign…​FIXME

results matching ""

    No results matching ""