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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Position
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Field Details

    • EMPTY_POSITION

      static final Position EMPTY_POSITION
  • Method Details

    • isEmpty

      boolean isEmpty()