Examples of PrevaylerTransactionSubject


Examples of org.prevayler.demos.scalability.prevayler.PrevaylerTransactionSubject

        prevaylerQueryThreadsMax()
    );
  }

  static private void runPrevaylerTransaction() throws Exception {
    PrevaylerTransactionSubject subject = new PrevaylerTransactionSubject(prevaylerTransactionLogDirectory(), prevaylerJournalSerializer());
    new TransactionTestRun(
        subject,
        numberOfObjects(),
        prevaylerTransactionThreadsMin(),
        prevaylerTransactionThreadsMax()
    );
    if (isPrevaylerTransactionConsistencyChecked()) {
      out("Checking transaction log consistency.");
      if (!subject.isConsistent()) throw new RuntimeException("Transaction log consistency check failed.");
      out("Transaction log OK.\n");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.