Esempio n. 1
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);
   }
 }
Esempio n. 2
0
 private TitanTransaction getAutoStartTx() {
   TitanTransaction tx = txs.get();
   if (tx == null) {
     tx = internalStartTransaction();
   }
   return tx;
 }
Esempio n. 3
0
 private TitanTransaction internalStartTransaction() {
   TitanTransaction tx = (TitanTransaction) startThreadTransaction();
   txs.set(tx);
   openTx.put(tx, Boolean.TRUE);
   return tx;
 }