Class Partition (1.14.7)

public abstract class Partition implements Serializable

A partition of a topic.

Inheritance

java.lang.Object > Partition

Implements

Serializable

Static Methods

of(long partition)

public static Partition of(long partition)

Create a partition from its long value.

Parameter
Name Description
partition long
Returns
Type Description
Partition
Exceptions
Type Description
ApiException

Constructors

Partition()

public Partition()

Methods

value()

public abstract long value()

The long value of this partition.

Returns
Type Description
long