Record Class LogSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogSnapshot
- Record Components:
stream- logical stream identifiermarkerOffset- offset of the snapshot marker recordtimestampMillis- marker timestamp in epoch millisecondsmetadata- snapshot marker metadata
- All Implemented Interfaces:
Serializable
public record LogSnapshot(LogStreamId stream, LogOffset markerOffset, long timestampMillis, Map<String,String> metadata)
extends Record
implements Serializable
Snapshot marker metadata written to the log.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLogSnapshot(LogStreamId stream, LogOffset markerOffset, long timestampMillis, Map<String, String> metadata) Creates a snapshot marker result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themarkerOffsetrecord component.metadata()Returns the value of themetadatarecord component.stream()Returns the value of thestreamrecord component.longReturns the value of thetimestampMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogSnapshot
public LogSnapshot(LogStreamId stream, LogOffset markerOffset, long timestampMillis, Map<String, String> metadata) Creates a snapshot marker result.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stream
-
markerOffset
Returns the value of themarkerOffsetrecord component.- Returns:
- the value of the
markerOffsetrecord component
-
timestampMillis
public long timestampMillis()Returns the value of thetimestampMillisrecord component.- Returns:
- the value of the
timestampMillisrecord component
-
metadata
-