Class TransactionHandlerBase

    • Constructor Detail

      • TransactionHandlerBase

        public TransactionHandlerBase()
    • Method Detail

      • execute

        public void execute​(java.lang.Runnable action)
        Execute the runnable action within a transaction. If it completes normally, commit the transaction, otherwise abort the transaction.
        Specified by:
        execute in interface TransactionHandler
      • calculate

        public <T> T calculate​(java.util.function.Supplier<T> action)
        Execute the supplier action within a transaction. If it completes normally, commit the transaction and return the result, otherwise abort the transaction.
        Specified by:
        calculate in interface TransactionHandler