Record Class NotificationHistoryStore.CheckpointValue
java.lang.Object
java.lang.Record
ecmwf.common.database.NotificationHistoryStore.CheckpointValue
- Enclosing class:
NotificationHistoryStore
public static record NotificationHistoryStore.CheckpointValue(long sequence, long updated)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointValue(long sequence, long updated) Creates an instance of aCheckpointValuerecord class. -
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.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.longupdated()Returns the value of theupdatedrecord component.
-
Constructor Details
-
CheckpointValue
public CheckpointValue(long sequence, long updated) Creates an instance of aCheckpointValuerecord class.- Parameters:
sequence- the value for thesequencerecord componentupdated- the value for theupdatedrecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
updated
public long updated()Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-