Interface TransactionStatus.Cases<R>

  • Enclosing interface:
    TransactionStatus

    public static interface TransactionStatus.Cases<R>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      R aborted()  
      R committed​(long commitTimestamp)  
      R inProgress()
      For transactions on schema version >= 4, an inProgress state has been introduced.
      R unknown()
      From transaction schema version 4, we have added the ability to truncate the transactions table i.e.
    • Method Detail

      • inProgress

        R inProgress()
        For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in the transactions table against the start timestamp. The state will be written before writing to the kvs. Previously, absence of any state for a transaction would indicate that it is in progress.
      • committed

        R committed​(long commitTimestamp)
      • aborted

        R aborted()
      • unknown

        R unknown()
        From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it would be possible that the transactions table is not the source of truth for state of a transaction. Note that this state is not expected for transaction schema versions < 4.