Package com.sleepycat.je

Examples of com.sleepycat.je.TransactionConfig


            throw new IllegalStateException("Message store durability is not set");
        }

        try
        {
            TransactionConfig transactionConfig = new TransactionConfig();
            transactionConfig.setDurability(getRealMessageStoreDurability());
            return _environment.beginTransaction(null, transactionConfig);
        }
        catch(DatabaseException e)
        {
            throw handleDatabaseException("Failure to start transaction", e);
View Full Code Here


        this();
        this.directory = directory;
    }

    public BDbPersistenceAdapter(Environment environment, WireFormat wireFormat) {
        this(environment, wireFormat, BDbHelper.createDatabaseConfig(), new TransactionConfig());
    }
View Full Code Here

        this();
        this.directory = directory;
    }

    public BDbPersistenceAdapter(Environment environment, WireFormat wireFormat) {
        this(environment, wireFormat, BDbHelper.createDatabaseConfig(), new TransactionConfig());
    }
View Full Code Here

         */
        long prepareId = reader.getTxnPrepareId();
        Long prepareIdL = new Long(prepareId);
        if (!committedTxnIds.contains(prepareIdL) &&
      !abortedTxnIds.contains(prepareIdL)) {
      TransactionConfig txnConf = new TransactionConfig();
      Txn preparedTxn = new Txn(env, txnConf, prepareId);
      preparedTxn.setLockTimeout(0);
      preparedTxns.put(prepareIdL, preparedTxn);
      env.getTxnManager().registerXATxn
          (reader.getTxnPrepareXid(), preparedTxn, true);
View Full Code Here

      } catch (UnsupportedOperationException e) {}
   }

   @Test
   public void testGetTransactionConfig() throws Exception {
      TransactionConfig config = new TransactionConfig();
      runner = new PreparableTransactionRunner(env);
      runner.setTransactionConfig(config);
      assert runner.getTransactionConfig().equals(config);
   }
View Full Code Here

        this();
        this.directory = directory;
    }

    public BDbPersistenceAdapter(Environment environment, WireFormat wireFormat) {
        this(environment, wireFormat, BDbHelper.createDatabaseConfig(), new TransactionConfig());
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.TransactionConfig

Copyright © 2018 www.massapicom. 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.