Class LogOffsetImpl
java.lang.Object
org.nuxeo.lib.stream.log.internals.LogOffsetImpl
- All Implemented Interfaces:
Comparable<LogOffset>,LogOffset
- Since:
- 9.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogOffsetImpl(LogPartition partition, long offset) LogOffsetImpl(Name name, int partition, long offset) -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()Returns the next offset corresponding to the next position in the same partition.longoffset()The position for the thisLogOffset.partition().Returns the tuple Log name and partition.toString()
-
Field Details
-
partition
-
offset
protected final long offset
-
-
Constructor Details
-
LogOffsetImpl
-
LogOffsetImpl
-
-
Method Details
-
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
Description copied from interface:LogOffsetReturns the next offset corresponding to the next position in the same partition.- Specified by:
nextOffsetin interfaceLogOffset
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<LogOffset>
-