Record Class ConsistentReadStart
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.module.rdbms.strategy.ConsistentReadStart
- Record Components:
exportedSnapshotId- a snapshot id other connections can import, if anyguarantee- what the transaction guarantees
public record ConsistentReadStart(Optional<String> exportedSnapshotId, ConsistencyGuarantee guarantee)
extends Record
Result of RDBMSActionStrategyInterface.beginConsistentRead - what the
connection's transaction now guarantees, and (if the database can share it)
an id by which other connections can attach to the same snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionConsistentReadStart(Optional<String> exportedSnapshotId, ConsistencyGuarantee guarantee) Creates an instance of aConsistentReadStartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportedSnapshotIdrecord component.Returns the value of theguaranteerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsistentReadStart
Creates an instance of aConsistentReadStartrecord class.- Parameters:
exportedSnapshotId- the value for theexportedSnapshotIdrecord componentguarantee- the value for theguaranteerecord 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 withObjects::equals(Object,Object). -
exportedSnapshotId
Returns the value of theexportedSnapshotIdrecord component.- Returns:
- the value of the
exportedSnapshotIdrecord component
-
guarantee
-