Class Offset

java.lang.Object
com.google.cloud.pubsublite.Offset
All Implemented Interfaces:
Serializable, Comparable<Offset>

public abstract class Offset extends Object implements Comparable<Offset>, Serializable
An offset in the partition.
See Also:
  • Constructor Details

    • Offset

      public Offset()
  • Method Details

    • of

      public static Offset of(long offset)
      Create an offset.
    • value

      public abstract long value()
      The long value of this offset.
    • compareTo

      public int compareTo(Offset o)
      Specified by:
      compareTo in interface Comparable<Offset>