Record Class NotificationHistoryStore.Entry
java.lang.Object
java.lang.Record
ecmwf.common.database.NotificationHistoryStore.Entry
- All Implemented Interfaces:
Serializable
- Enclosing class:
NotificationHistoryStore
public static record NotificationHistoryStore.Entry(long sequence, long storedAt, String target, String event)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.longsequence()Returns the value of thesequencerecord component.longstoredAt()Returns the value of thestoredAtrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
sequence- the value for thesequencerecord componentstoredAt- the value for thestoredAtrecord componenttarget- the value for thetargetrecord componentevent- the value for theeventrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components 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
-
storedAt
public long storedAt()Returns the value of thestoredAtrecord component.- Returns:
- the value of the
storedAtrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-