Class LogOffsetImpl
- java.lang.Object
-
- org.nuxeo.lib.stream.log.internals.LogOffsetImpl
-
- All Implemented Interfaces:
Comparable<LogOffset>,LogOffset
public class LogOffsetImpl extends Object implements LogOffset
- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected longoffsetprotected LogPartitionpartition
-
Constructor Summary
Constructors Constructor Description LogOffsetImpl(LogPartition partition, long offset)LogOffsetImpl(Name name, int partition, long offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LogOffset o)booleanequals(Object o)inthashCode()LogOffsetnextOffset()Returns the next offset corresponding to the next position in the same partition.longoffset()The position for the thisLogOffset.partition().LogPartitionpartition()Returns the tuple Log name and partition.StringtoString()
-
-
-
Field Detail
-
partition
protected final LogPartition partition
-
offset
protected final long offset
-
-
Constructor Detail
-
LogOffsetImpl
public LogOffsetImpl(LogPartition partition, long offset)
-
LogOffsetImpl
public LogOffsetImpl(Name name, int partition, long offset)
-
-
Method Detail
-
partition
public LogPartition partition()
Description copied from interface:LogOffsetReturns the tuple Log name and partition.
-
offset
public long offset()
Description copied from interface:LogOffsetThe position for the thisLogOffset.partition().
-
nextOffset
public LogOffset nextOffset()
Description copied from interface:LogOffsetReturns the next offset corresponding to the next position in the same partition.- Specified by:
nextOffsetin interfaceLogOffset
-
compareTo
public int compareTo(LogOffset o)
- Specified by:
compareToin interfaceComparable<LogOffset>
-
-