Class Partition (1.9.4)

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
NameDescription
partitionlong
Returns
TypeDescription
Partition
Exceptions
TypeDescription
ApiException

Constructors

Partition()

public Partition()

Methods

value()

public abstract long value()

The long value of this partition.

Returns
TypeDescription
long