@Override public boolean setTransactionTimeout(final int i) throws XAException { return delegate.setTransactionTimeout(i); }
if (((Boolean) entry.getValue()).booleanValue()) { try { resetXATimeOut = xar.setTransactionTimeout(seconds); } catch (XAException e) { String exception =
public boolean enlistResource(final XAResource xaRes) throws RollbackException, IllegalStateException, SystemException { Assert.checkNotNullParam("xaRes", xaRes); final int estimatedRemainingTime = max(1, getEstimatedRemainingTime()); try { xaRes.setTransactionTimeout(estimatedRemainingTime); } catch (XAException e) { throw Log.log.setTimeoutFailed(estimatedRemainingTime, e); } return transaction.enlistResource(xaRes); }
try { if (!DISABLE_TRANSACTION_TIMEOUT_SETTING) { xaRes.setTransactionTimeout(delay);
@Test public void setTxTimeoutWhenEnlistingResource() throws Exception { javax.transaction.Transaction tx = mock(javax.transaction.Transaction.class); when(mockTransactionManager.getTransaction()).thenReturn(tx); XaTransaction xaTransaction = new XaTransaction(mockMuleContext); int timeoutValue = 1500; int timeoutValueInSeconds = 1500 / 1000; xaTransaction.setTimeout(timeoutValue); xaTransaction.begin(); xaTransaction.enlistResource(mockXaResource); verify(mockXaResource).setTransactionTimeout(timeoutValueInSeconds); }
/** * Set the current transaction timeout value for this XAResource */ public boolean setTransactionTimeout(int seconds) throws XAException { if (xares != null) { return xares.setTransactionTimeout(seconds); } return false; }
public void setTransactionTimeoutQuietly(int timeout) { try { this.delegate.setTransactionTimeout(timeout); } catch (Exception ex) { return; } }
public void setTransactionTimeoutQuietly(int timeout) { try { this.delegate.setTransactionTimeout(timeout); } catch (Exception ex) { return; } }
/** * {@inheritDoc} */ public boolean setTransactionTimeout(int flag) throws XAException { return xaResource.setTransactionTimeout(flag); }
/** * Sets the transaction timeout. */ @Override public boolean setTransactionTimeout(int seconds) throws XAException { return _xaResource.setTransactionTimeout(seconds); }
public boolean setTransactionTimeout(int arg0) throws XAException { if (this.delegate == null) { return false; } return delegate.setTransactionTimeout(arg0); }
public boolean setTransactionTimeout(int arg0) throws XAException { if (this.delegate == null) { return false; } return delegate.setTransactionTimeout(arg0); }
public void setTransactionTimeoutQuietly(int timeout) { try { this.delegate.setTransactionTimeout(timeout); } catch (Exception ex) { return; } }
public boolean setTransactionTimeout(int seconds) throws XAException { try { return resource.setTransactionTimeout(seconds); } catch (XAException e) { throw getXAException(e); } }
public boolean setTransactionTimeout(int seconds) throws XAException { XAResource xaResource = getDelegate(); try { return xaResource.setTransactionTimeout(seconds); } catch (XAException e) { throw check(e); } }
public boolean setTransactionTimeout(int i) throws XAException { Profiler profiler = _profilerPoint.start(); try { return _xaResource.setTransactionTimeout(i); } finally { profiler.finish(); } }
public boolean enlistResource(final XAResource xaRes) throws RollbackException, IllegalStateException, SystemException { Assert.checkNotNullParam("xaRes", xaRes); final int estimatedRemainingTime = max(1, getEstimatedRemainingTime()); try { xaRes.setTransactionTimeout(estimatedRemainingTime); } catch (XAException e) { throw Log.log.setTimeoutFailed(estimatedRemainingTime, e); } return transaction.enlistResource(xaRes); }
@Override public boolean setTransactionTimeout(final int seconds) throws XAException { XAResource xaResource = getDelegate(false); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("setTransactionTimeout " + xaResource + " xid "); } try { return xaResource.setTransactionTimeout(seconds); } catch (XAException e) { throw check(e); } }
@Override public boolean setTransactionTimeout(final int seconds) throws XAException { XAResource xaResource = getDelegate(false); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("setTransactionTimeout " + xaResource + " xid "); } try { return xaResource.setTransactionTimeout(seconds); } catch (XAException e) { throw check(e); } }
/** * @see org.apache.jackrabbit.webdav.jcr.transaction.TxLockManagerImpl.Transaction#start(TransactionResource) */ public void start(TransactionResource resource) throws DavException { XAResource xaRes = getXAResource(resource); try { xaRes.setTransactionTimeout((int) getLock().getTimeout() / 1000); xaRes.start(xid, XAResource.TMNOFLAGS); } catch (XAException e) { throw new DavException(DavServletResponse.SC_FORBIDDEN, e.getMessage()); } }