Interface TransactionTimeoutTracker

All Superinterfaces:
AutoCloseable

@Beta public interface TransactionTimeoutTracker extends AutoCloseable
Represent the tracker for the timeout of the transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTransaction(long sequenceId, long timeout)
    Add a txnID to the tracker.
    void
    Close the transaction timeout tracker and release all resources.
    void
    replayAddTransaction(long sequenceId, long timeout)
    When replay the log, add the txnMeta to timer task queue.
    void
    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 sequenceId
      timeout - 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 sequenceId
      timeout - 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:
      close in interface AutoCloseable