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