Class Txn


  • public class Txn
    extends Object
    • Constructor Detail

      • Txn

        public Txn()
    • Method Detail

      • addToActiveTxn

        public static void addToActiveTxn​(TxnMember member)
        In most cases this method shouldn't be called directly from application code. It is public so that utility code can hook itself into the txn mechanism.
      • doTxn

        public static void doTxn​(Runnable task)
      • doTxn

        public static <T> T doTxn​(Supplier<T> task)