Package io.umadb.client
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
position
public long position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-