Interface PartitionAssignmentOrBuilder (1.9.0)

public interface PartitionAssignmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPartitions(int index)

public abstract long getPartitions(int index)

The list of partition numbers this subscriber is assigned to.

repeated int64 partitions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The partitions at the given index.

getPartitionsCount()

public abstract int getPartitionsCount()

The list of partition numbers this subscriber is assigned to.

repeated int64 partitions = 1;

Returns
TypeDescription
int

The count of partitions.

getPartitionsList()

public abstract List<Long> getPartitionsList()

The list of partition numbers this subscriber is assigned to.

repeated int64 partitions = 1;

Returns
TypeDescription
List<Long>

A list containing the partitions.