493494495496497498499500501502503
Transactions txns = sessionContext.getTransactions(); try { Transaction txn = txns.begin(); try { V result = operation.call(); txn.commit(); return result; } catch (Exception e) { txn.rollback(); throw (e instanceof RuntimeException) ? (RuntimeException)e : new RuntimeException(e); }
444445446447448449450451452453454
} LOGGER.debug("Altered {0} node(s)", numNodes); // Commit the transaction ... txn.commit(); clearState(); } catch (org.infinispan.util.concurrent.TimeoutException e) { if (txn != null) {
622623624625626627628629630631632
} LOGGER.debug("Altered {0} node(s)", numNodes); // Commit the transaction ... txn.commit(); if (LOGGER.isDebugEnabled()) { LOGGER.debug("Altered {0} keys: {1}", numNodes, this.changedNodes.keySet()); }
787788789790791792793794795796797
} LOGGER.debug("Altered {0} node(s)", numNodes); // Commit the transaction ... txn.commit(); clearState(savedNodesInOrder); that.clearState(); } catch (NotSupportedException err) {