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 long
offset
protected LogPartition
partition
-
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 int
compareTo(LogOffset o)
boolean
equals(Object o)
int
hashCode()
LogOffset
nextOffset()
Returns the next offset corresponding to the next position in the same partition.long
offset()
The position for the thisLogOffset.partition()
.LogPartition
partition()
Returns the tuple Log name and partition.String
toString()
-
-
-
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:LogOffset
Returns the tuple Log name and partition.
-
offset
public long offset()
Description copied from interface:LogOffset
The position for the thisLogOffset.partition()
.
-
nextOffset
public LogOffset nextOffset()
Description copied from interface:LogOffset
Returns the next offset corresponding to the next position in the same partition.- Specified by:
nextOffset
in interfaceLogOffset
-
compareTo
public int compareTo(LogOffset o)
- Specified by:
compareTo
in interfaceComparable<LogOffset>
-
-