Interface Position

All Superinterfaces:
Comparable<Position>, Serializable

public interface Position extends Serializable, Comparable<Position>
An opaque representation of the position of an element within a channel of a topic.

The exact implementation of a Position is dependent on the NamedTopic implementation.

Positions are Comparable so that topic elements can be compared to find their relative positions to one another.

Positions are serializable, so they can be stored and recovered in their binary serialized format, which is useful for use-cases where the state of processing of specific topic elements needs to be tracked and stored in a third-party data store (such as a NamedMap or database).

Since:
21.06
Author:
Jonathan Knight 2021.05.05