Examples of TransactionConfig


Examples of com.sleepycat.je.TransactionConfig

             * write. Make sure that commitSync(), commitNoSync always
             * override all preferences.
             */
            for (int i = 0; i < testCombinations.length; i++) {
                SyncCombo combo = testCombinations[i];
                TransactionConfig txnConfig = combo.getTxnConfig();
                combo.setEnvironmentMutableConfig(env);
                syncExplicit(logFile, txnConfig,
                             combo.expectSync, combo.expectWrite);
            }

View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    public void testNoWaitConfig()
        throws Throwable {

        try {
            TransactionConfig defaultConfig = new TransactionConfig();
            TransactionConfig noWaitConfig = new TransactionConfig();
            noWaitConfig.setNoWait(true);
            Transaction txn;

            /* noWait=false */

            assertTrue(!isNoWaitTxn(null));
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    }

    public void testWaiters()
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn2 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn3 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn4 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn5 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            /*
             * Build up 1 owners and 3waiters for a lock, to test the
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    }

    public void testPromotion()
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn2 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn3 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn4 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn5 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            /*
             * Build up 1 owners and 3 read waiters for a lock. Then
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

     */
    private void checkConflict(LockType firstRequest, LockType secondRequest,
                               LockGrantType secondGrantType)
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn2 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            Lock lock = new Lock(new Long(1));

View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    private void checkUpgrade(LockType firstRequest, LockType secondRequest,
                              LockGrantType secondGrantType,
                              LockType finalType)
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            Lock lock = new Lock(new Long(1));
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

     * waiter list is examined by Lock.lock().
     */
    public void testRangeInsertWaiterConflict()
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn2 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn3 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            Lock lock = new Lock(new Long(1));
            assertEquals(LockGrantType.NEW,
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    }

    public void testTransfer()
        throws Exception {

  Locker txn1 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn2 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn3 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn4 = new AutoTxn(envImpl, new TransactionConfig());
  Locker txn5 = new AutoTxn(envImpl, new TransactionConfig());
        MemoryBudget mb = envImpl.getMemoryBudget();

        try {
            /* Transfer from one locker to another locker. */
            Lock lock = new Lock(new Long(1));
View Full Code Here

Examples of com.sleepycat.je.TransactionConfig

    }

    public void testReadCommittedTransaction()
        throws Exception {

        TransactionConfig config = new TransactionConfig();
        config.setReadCommitted(true);
        doReadCommitted(map, config);
    }
View Full Code Here

Examples of org.apache.deltaspike.jpa.api.transaction.TransactionConfig

        }
    }

    protected TransactionConfig createDefaultTransactionConfig()
    {
        return new TransactionConfig()
        {
            private static final long serialVersionUID = -3915439087580270117L;

            @Override
            public Integer getUserTransactionTimeoutInSeconds()
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.