Record Class TransactionManager.RecoverableTransactionState
java.lang.Object
java.lang.Record
com.loomcache.server.transaction.TransactionManager.RecoverableTransactionState
- Enclosing class:
TransactionManager
public static record TransactionManager.RecoverableTransactionState(UUID transactionId, long timeoutMillis, long startTimeMillis, List<TransactionOp> operations, List<TransactionKeyLockManager.LockedKey> lockedKeys)
extends Record
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionRecoverableTransactionState(UUID transactionId, long timeoutMillis, long startTimeMillis, List<TransactionOp> operations, List<TransactionKeyLockManager.LockedKey> lockedKeys) Creates an instance of aRecoverableTransactionStaterecord 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.Returns the value of thelockedKeysrecord component.Returns the value of theoperationsrecord component.longReturns the value of thestartTimeMillisrecord component.longReturns the value of thetimeoutMillisrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionIdrecord component.
-
Constructor Details
-
RecoverableTransactionState
public RecoverableTransactionState(UUID transactionId, long timeoutMillis, long startTimeMillis, List<TransactionOp> operations, List<TransactionKeyLockManager.LockedKey> lockedKeys) Creates an instance of aRecoverableTransactionStaterecord class.- Parameters:
transactionId- the value for thetransactionIdrecord componenttimeoutMillis- the value for thetimeoutMillisrecord componentstartTimeMillis- the value for thestartTimeMillisrecord componentoperations- the value for theoperationsrecord componentlockedKeys- the value for thelockedKeysrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
transactionId
Returns the value of thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
timeoutMillis
public long timeoutMillis()Returns the value of thetimeoutMillisrecord component.- Returns:
- the value of the
timeoutMillisrecord component
-
startTimeMillis
public long startTimeMillis()Returns the value of thestartTimeMillisrecord component.- Returns:
- the value of the
startTimeMillisrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
lockedKeys
Returns the value of thelockedKeysrecord component.- Returns:
- the value of the
lockedKeysrecord component
-