public void begin() throws NotSupportedException, SystemException { begin(getTransactionTimeoutMilliseconds(0L)); }
public void begin() throws NotSupportedException, SystemException { begin(getTransactionTimeoutMilliseconds(0L)); }
public void begin() throws NotSupportedException, SystemException { begin(getTransactionTimeoutMilliseconds(0L)); }
public void begin() throws NotSupportedException, SystemException { begin(getTransactionTimeoutMilliseconds(0L)); }
public Transaction importXid(Xid xid, long transactionTimeoutMilliseconds) throws XAException, SystemException { if (transactionTimeoutMilliseconds < 0) { throw new SystemException("transaction timeout must be positive or 0 to reset to default"); } return new TransactionImpl(xid, this, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); }
public Transaction importXid(Xid xid, long transactionTimeoutMilliseconds) throws XAException, SystemException { if (transactionTimeoutMilliseconds < 0) { throw new SystemException("transaction timeout must be positive or 0 to reset to default"); } TransactionImpl tx = new TransactionImpl(xid, xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); return tx; }
public Transaction importXid(Xid xid, long transactionTimeoutMilliseconds) throws XAException, SystemException { if (transactionTimeoutMilliseconds < 0) { throw new SystemException("transaction timeout must be positive or 0 to reset to default"); } TransactionImpl tx = new TransactionImpl(xid, xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); return tx; }
public Transaction importXid(Xid xid, long transactionTimeoutMilliseconds) throws XAException, SystemException { if (transactionTimeoutMilliseconds < 0) { throw new SystemException("transaction timeout must be positive or 0 to reset to default"); } TransactionImpl tx = new TransactionImpl(xid, xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); return tx; }
public Transaction begin(long transactionTimeoutMilliseconds) throws NotSupportedException, SystemException { if (getStatus() != Status.STATUS_NO_TRANSACTION) { throw new NotSupportedException("Nested Transactions are not supported"); } TransactionImpl tx = new TransactionImpl(xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); // timeoutTimer.schedule(tx, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); try { associate(tx); } catch (InvalidTransactionException e) { // should not be possible since we just created that transaction and no one has a reference yet throw (SystemException)new SystemException("Internal error: associate threw an InvalidTransactionException for a newly created transaction").initCause(e); } // Todo: Verify if this is correct thing to do. Use default timeout for next transaction. this.transactionTimeoutMilliseconds.set(null); return tx; }
public Transaction begin(long transactionTimeoutMilliseconds) throws NotSupportedException, SystemException { if (getStatus() != Status.STATUS_NO_TRANSACTION) { throw new NotSupportedException("Nested Transactions are not supported"); } TransactionImpl tx = new TransactionImpl(xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); // timeoutTimer.schedule(tx, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); try { associate(tx); } catch (InvalidTransactionException e) { // should not be possible since we just created that transaction and no one has a reference yet throw (SystemException)new SystemException("Internal error: associate threw an InvalidTransactionException for a newly created transaction").initCause(e); } // Todo: Verify if this is correct thing to do. Use default timeout for next transaction. this.transactionTimeoutMilliseconds.set(null); return tx; }
public Transaction begin(long transactionTimeoutMilliseconds) throws NotSupportedException, SystemException { if (getStatus() != Status.STATUS_NO_TRANSACTION) { throw new NotSupportedException("Nested Transactions are not supported"); } TransactionImpl tx = new TransactionImpl(this, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); // timeoutTimer.schedule(tx, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); try { associate(tx); } catch (InvalidTransactionException e) { // should not be possible since we just created that transaction and no one has a reference yet throw (SystemException)new SystemException("Internal error: associate threw an InvalidTransactionException for a newly created transaction").initCause(e); } // Todo: Verify if this is correct thing to do. Use default timeout for next transaction. this.transactionTimeoutMilliseconds.set(null); return tx; }
public Transaction begin(long transactionTimeoutMilliseconds) throws NotSupportedException, SystemException { if (getStatus() != Status.STATUS_NO_TRANSACTION) { throw new NotSupportedException("Nested Transactions are not supported"); } TransactionImpl tx = new TransactionImpl(xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); // timeoutTimer.schedule(tx, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds)); try { associate(tx); } catch (InvalidTransactionException e) { // should not be possible since we just created that transaction and no one has a reference yet throw (SystemException)new SystemException("Internal error: associate threw an InvalidTransactionException for a newly created transaction").initCause(e); } // Todo: Verify if this is correct thing to do. Use default timeout for next transaction. this.transactionTimeoutMilliseconds.set(null); return tx; }