Package com.google.cloud.pubsublite
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Offset()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Offset o)
static Offset
of(long offset)
Create an offset.abstract long
value()
The long value of this offset.
-
-
-
Method Detail
-
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 interfaceComparable<Offset>
-
-