protected DOMStoreReadTransaction newReadOnlyTransaction(T transactionId) { final Entry<State, DataTreeSnapshot> entry = getSnapshot(transactionId); return SnapshotBackedTransactions.newReadTransaction(transactionId, getDebugTransactions(), entry.getValue()); }
protected DOMStoreReadTransaction newReadOnlyTransaction(T transactionId) { final Entry<State, DataTreeSnapshot> entry = getSnapshot(transactionId); return SnapshotBackedTransactions.newReadTransaction(transactionId, getDebugTransactions(), entry.getValue()); }
protected DOMStoreWriteTransaction newWriteOnlyTransaction(T transactionId) { Entry<State, DataTreeSnapshot> entry; DOMStoreWriteTransaction ret; do { entry = getSnapshot(transactionId); ret = new SnapshotBackedWriteTransaction<>(transactionId, getDebugTransactions(), entry.getValue(), this); } while (!recordTransaction(entry.getKey(), ret)); return ret; }
protected DOMStoreWriteTransaction newWriteOnlyTransaction(T transactionId) { Entry<State, DataTreeSnapshot> entry; DOMStoreWriteTransaction ret; do { entry = getSnapshot(transactionId); ret = new SnapshotBackedWriteTransaction<T>(transactionId, getDebugTransactions(), entry.getValue(), this); } while (!recordTransaction(entry.getKey(), ret)); return ret; }
protected DOMStoreReadWriteTransaction newReadWriteTransaction(T transactionId) { Entry<State, DataTreeSnapshot> entry; DOMStoreReadWriteTransaction ret; do { entry = getSnapshot(transactionId); ret = new SnapshotBackedReadWriteTransaction<>(transactionId, getDebugTransactions(), entry.getValue(), this); } while (!recordTransaction(entry.getKey(), ret)); return ret; }
protected DOMStoreReadWriteTransaction newReadWriteTransaction(T transactionId) { Entry<State, DataTreeSnapshot> entry; DOMStoreReadWriteTransaction ret; do { entry = getSnapshot(transactionId); ret = new SnapshotBackedReadWriteTransaction<T>(transactionId, getDebugTransactions(), entry.getValue(), this); } while (!recordTransaction(entry.getKey(), ret)); return ret; }