Interface TransactionTimeoutTracker
- All Superinterfaces:
AutoCloseable
Represent the tracker for the timeout of the transaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransaction(long sequenceId, long timeout) Add a txnID to the tracker.voidclose()Close the transaction timeout tracker and release all resources.voidreplayAddTransaction(long sequenceId, long timeout) When replay the log, add the txnMeta to timer task queue.voidstart()When replay the log finished, we need to start the tracker.
-
Method Details
-
addTransaction
void addTransaction(long sequenceId, long timeout) Add a txnID to the tracker.- Parameters:
sequenceId- the sequenceIdtimeout- the absolute timestamp for transaction timeout
-
replayAddTransaction
void replayAddTransaction(long sequenceId, long timeout) When replay the log, add the txnMeta to timer task queue.- Parameters:
sequenceId- the sequenceIdtimeout- the absolute timestamp for transaction timeout
-
start
void start()When replay the log finished, we need to start the tracker. -
close
void close()Close the transaction timeout tracker and release all resources.- Specified by:
closein interfaceAutoCloseable
-