Record Class TrackingInfo
java.lang.Object
java.lang.Record
io.umadb.client.TrackingInfo
- Record Components:
source- the unique identifier of the consumer, projection, or system tracking the eventsposition- the sequence position up to which the source has successfully processed
Represents the read/processing progress of a named consumer or projection.
Tracking info lets a consumer checkpoint how far it has processed the event
stream. It can be attached to an AppendRequest to advance the cursor
atomically with the append, and read back later via
UmaDbClient.getTrackingInfo(String).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(long position) Returns a copy of this tracking info advanced to the given position.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TrackingInfoCreates a newTrackingInfo.longposition()Returns the value of thepositionrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrackingInfo
Creates a newTrackingInfo.- Throws:
IllegalArgumentException- if validation constraints are violated
-
-
Method Details
-
of
Creates a newTrackingInfo.- Parameters:
source- the consumer identifierposition- the position processed up to- Returns:
- a new
TrackingInfo
-
at
Returns a copy of this tracking info advanced to the given position.- Parameters:
position- the new position- Returns:
- a new
TrackingInfofor the same source
-
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. -
source
-
position
-