Record Class ReadResponse
java.lang.Object
java.lang.Record
io.umadb.client.ReadResponse
- Record Components:
events- the list of sequenced events returned by the readhead- the position of the latest event in the store when the response was generated; may benullif unknown
Represents the response returned from a read operation.
Contains a list of sequenced events and optionally the head position of the event stream at the time the response was generated.
If head is provided, it can be used as a reference point for subsequent reads
or for subscribing to new events.
-
Constructor Summary
ConstructorsConstructorDescriptionReadResponse(List<SequencedEvent> events, Long head) Creates an instance of aReadResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 withObjects::equals(Object,Object). -
events
-
head
-