Record Class AppendResponse
java.lang.Object
java.lang.Record
io.umadb.client.AppendResponse
- Record Components:
position- the position of the last appended event
Represents the result of a successful append operation.
The position indicates the position of the last appended event
after the append operation completes. This value can be used by clients
for optimistic concurrency control or as a reference point for subsequent
append or read operations.
-
Constructor Summary
ConstructorsConstructorDescriptionAppendResponse(long position) Creates an instance of aAppendResponserecord 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.longposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppendResponse
public AppendResponse(long position) Creates an instance of aAppendResponserecord class.- Parameters:
position- the value for thepositionrecord 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. -
position
-