Record Class LogStreamStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogStreamStatus
- Record Components:
stream- logical stream identifiercurrentOffset- current stream offset
- All Implemented Interfaces:
Serializable
public record LogStreamStatus(LogStreamId stream, LogOffset currentOffset)
extends Record
implements Serializable
Per-stream status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLogStreamStatus(LogStreamId stream, LogOffset currentOffset) Creates stream status. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.stream()Returns the value of thestreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogStreamStatus
Creates stream status.
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
stream
-
currentOffset
Returns the value of thecurrentOffsetrecord component.- Returns:
- the value of the
currentOffsetrecord component
-