예제 #1
0
 @Override
 public synchronized void shutdown() {
   for (TitanTransaction tx : openTx.keySet()) {
     tx.commit();
   }
   openTx.clear();
   txs = null;
 }
예제 #2
0
 @Override
 public void stopTransaction(final Conclusion conclusion) {
   TitanTransaction tx = txs.get();
   if (tx != null) {
     assert tx.isOpen();
     tx.stopTransaction(conclusion);
     txs.remove();
     openTx.remove(tx);
   }
 }