@Override public Throwable createException(String message, Throwable cause) { return new TransactionNotActiveException(message); } });
@Override public Throwable createException(String message, Throwable cause) { return new TransactionNotActiveException(message); } });
private void checkActive(String serviceName, String name) { if (transaction.getState() != ACTIVE) { throw new TransactionNotActiveException("No transaction is found while accessing " + "transactional object -> " + serviceName + "[" + name + "]!"); } }
@Override public void add(TransactionLogRecord record) { if (state != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("Transaction is not active!"); } transactionLog.add(record); }
@Override public void add(TransactionLogRecord record) { if (state != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("Transaction is not active!"); } transactionLog.add(record); }
private void checkActive(String serviceName, String name) { if (transaction.getState() != ACTIVE) { throw new TransactionNotActiveException("No transaction is found while accessing " + "transactional object -> " + serviceName + "[" + name + "]!"); } }
void checkTransactionState() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
protected void checkTransactionActive() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
void checkTransactionState() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
void checkTransactionState() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
void checkTransactionActive() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
protected void checkTransactionActive() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
void checkTransactionState() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
@Override public void add(TransactionLogRecord record) { if (state != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("Transaction is not active!"); } checkThread(); transactionLog.add(record); }
@Override public void add(TransactionLogRecord record) { if (state != Transaction.State.ACTIVE) { throw new TransactionNotActiveException("Transaction is not active!"); } checkThread(); transactionLog.add(record); }
void checkTransactionActive() { if (!tx.getState().equals(Transaction.State.ACTIVE)) { throw new TransactionNotActiveException("Transaction is not active!"); } }
@Override public void prepare() throws TransactionException { if (state != ACTIVE) { throw new TransactionNotActiveException("Transaction is not active"); } checkTimeout(); try { state = PREPARING; List<Future> futures = transactionLog.prepare(nodeEngine); waitWithDeadline(futures, timeoutMillis, MILLISECONDS, RETHROW_TRANSACTION_EXCEPTION); futures.clear(); putTransactionInfoRemote(); state = PREPARED; } catch (Throwable e) { throw ExceptionUtil.rethrow(e, TransactionException.class); } }
@Override public void prepare() throws TransactionException { if (state != ACTIVE) { throw new TransactionNotActiveException("Transaction is not active"); } checkTimeout(); try { state = PREPARING; List<Future> futures = transactionLog.prepare(nodeEngine); waitWithDeadline(futures, timeoutMillis, MILLISECONDS, RETHROW_TRANSACTION_EXCEPTION); futures.clear(); putTransactionInfoRemote(); state = PREPARED; } catch (Throwable e) { throw ExceptionUtil.rethrow(e, TransactionException.class); } }
void prepare() { checkTimeout(); try { if (state != ACTIVE) { throw new TransactionNotActiveException("Transaction is not active"); } ClientMessage request = XATransactionPrepareCodec.encodeRequest(txnId); ClientTransactionUtil.invoke(request, txnId, client, connection); state = PREPARED; } catch (Exception e) { state = ROLLING_BACK; throw rethrow(e); } }
void prepare() { checkTimeout(); try { if (state != ACTIVE) { throw new TransactionNotActiveException("Transaction is not active"); } ClientMessage request = XATransactionPrepareCodec.encodeRequest(txnId); ClientTransactionUtil.invoke(request, txnId, client, connection); state = PREPARED; } catch (Exception e) { state = ROLLING_BACK; throw rethrow(e); } }