/** * Commit a transaction. * <p> * Note: This is a convenience method. The implementation of this method is * delegated to the object returned by {@link #getTransactionService()}. * * @param tx * The transaction identifier. * * @return The commit time assigned to that transaction. * * @see ITransactionService#commit(long) */ final public long commit(final long tx) throws ValidationError { try { /* * Note: TransactionService will make call back to the * localTransactionManager to handle the client side of the * protocol. */ return getTransactionService().commit(tx); } catch (IOException e) { /* * Note: IOException is declared for RMI but will not be thrown * since the transaction service is in fact local. */ throw new RuntimeException(e); } }
/** * Commit a transaction. * <p> * Note: This is a convenience method. The implementation of this method is * delegated to the object returned by {@link #getTransactionService()}. * * @param tx * The transaction identifier. * * @return The commit time assigned to that transaction. * * @see ITransactionService#commit(long) */ final public long commit(final long tx) throws ValidationError { try { /* * Note: TransactionService will make call back to the * localTransactionManager to handle the client side of the * protocol. */ return getTransactionService().commit(tx); } catch (IOException e) { /* * Note: IOException is declared for RMI but will not be thrown * since the transaction service is in fact local. */ throw new RuntimeException(e); } }
/** * Commit a transaction obtained by {@link #newTx(long)} * * @param tx * The transaction identifier. * * @see <a href="http://trac.bigdata.com/ticket/1156"> Support read/write * transactions in the REST API</a> */ public void commitTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.commit(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
/** * Commit a transaction obtained by {@link #newTx(long)} * * @param tx * The transaction identifier. * * @see <a href="http://trac.bigdata.com/ticket/1156"> Support read/write * transactions in the REST API</a> */ public void commitTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.commit(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
final long commitTime = txService.commit(tx);
final long commitTime = txService.commit(tx);
.commit(txId.get());
txService.commit(txIdCreate);
.commit(txId.get());
txService.commit(txIdCreate);