/** {@inheritDoc} */ @Override public boolean setRollbackOnly() { enter(); try { return tx.setRollbackOnly(); } finally { leave(); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> commitAsync() throws IgniteException { enter(); try { return (IgniteFuture<Void>)createFuture(cctx.commitTxAsync(tx)); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void close() { enter(); try { cctx.endTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void suspend() throws IgniteException { enter(); try { cctx.suspendTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void resume() throws IgniteException { enter(true); try { cctx.resumeTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public boolean isRollbackOnly() { enter(); try { if (async) save(tx.isRollbackOnly()); return tx.isRollbackOnly(); } finally { leave(); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> rollbackAsync() throws IgniteException { enter(); try { return (IgniteFuture<Void>)(new IgniteFutureImpl(cctx.rollbackTxAsync(tx))); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void rollback() { enter(); try { IgniteInternalFuture rollbackFut = cctx.rollbackTxAsync(tx); if (async) asyncRes = new IgniteFutureImpl(rollbackFut); else rollbackFut.get(); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void commit() { enter(); try { IgniteInternalFuture<IgniteInternalTx> commitFut = cctx.commitTxAsync(tx); if (async) saveFuture(commitFut); else commitFut.get(); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public boolean setRollbackOnly() { enter(); try { return tx.setRollbackOnly(); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void suspend() throws IgniteException { enter(); try { cctx.suspendTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> commitAsync() throws IgniteException { enter(); try { return (IgniteFuture<Void>)createFuture(cctx.commitTxAsync(tx)); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void resume() throws IgniteException { enter(true); try { cctx.resumeTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void close() { enter(); try { cctx.endTx(tx); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public boolean isRollbackOnly() { enter(); try { if (async) save(tx.isRollbackOnly()); return tx.isRollbackOnly(); } finally { leave(); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> rollbackAsync() throws IgniteException { enter(); try { return (IgniteFuture<Void>)(new IgniteFutureImpl(cctx.rollbackTxAsync(tx))); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void commit() { enter(); try { IgniteInternalFuture<IgniteInternalTx> commitFut = cctx.commitTxAsync(tx); if (async) saveFuture(commitFut); else commitFut.get(); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }
/** {@inheritDoc} */ @Override public void rollback() { enter(); try { IgniteInternalFuture rollbackFut = cctx.rollbackTxAsync(tx); if (async) asyncRes = new IgniteFutureImpl(rollbackFut); else rollbackFut.get(); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { leave(); } }