Class ThreadTxn

    • Constructor Detail

      • ThreadTxn

        public ThreadTxn()
    • Method Detail

      • threadTxnRead

        public static ThreadAction threadTxnRead​(Transactional trans,
                                                 java.lang.Runnable action)
        Create a thread-backed delayed READ transaction action. Call ThreadAction.run() to perform the read transaction.
      • threadTxnWrite

        public static ThreadAction threadTxnWrite​(Transactional trans,
                                                  java.lang.Runnable action)
        Create a thread-backed delayed WRITE action. Call ThreadAction.run() to perform the write transaction. (If called from inside a write transaction on the trans, this will deadlock.)
      • threadTxnWriteAbort

        public static ThreadAction threadTxnWriteAbort​(Transactional trans,
                                                       java.lang.Runnable action)
        Create a thread-backed delayed WRITE-abort action (mainly for testing).