Record Class LogOffset
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogOffset
- Record Components:
value- non-negative offset value
- All Implemented Interfaces:
Serializable, Comparable<LogOffset>
Monotonic per-stream durable-log offset.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogOffsetReturns the first stream offset.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.next()Returns the next offset.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
LogOffset
public LogOffset(long value) Creates an offset.
-
-
Method Details
-
beginning
-
next
-
compareTo
- Specified by:
compareToin interfaceComparable<LogOffset>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
value
-