Record Class ECpdsBase.ReplicationCursor
java.lang.Object
java.lang.Record
ecmwf.common.database.ECpdsBase.ReplicationCursor
- Enclosing class:
ECpdsBase
public static record ECpdsBase.ReplicationCursor(long id, int held, int priority, long queued)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionReplicationCursor(long id, int held, int priority, long queued) Creates an instance of aReplicationCursorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ECpdsBase.ReplicationCursorafter(DataTransfer transfer) static ECpdsBase.ReplicationCursorempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheld()Returns the value of theheldrecord component.longid()Returns the value of theidrecord component.intpriority()Returns the value of thepriorityrecord component.longqueued()Returns the value of thequeuedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplicationCursor
public ReplicationCursor(long id, int held, int priority, long queued) Creates an instance of aReplicationCursorrecord class.- Parameters:
id- the value for theidrecord componentheld- the value for theheldrecord componentpriority- the value for thepriorityrecord componentqueued- the value for thequeuedrecord component
-
-
Method Details
-
empty
-
after
-
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. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
held
public int held()Returns the value of theheldrecord component.- Returns:
- the value of the
heldrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
queued
public long queued()Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-