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; }
@Override public DOMStoreReadTransaction newReadOnlyTransaction(TransactionIdentifier identifier) { return super.newReadOnlyTransaction(identifier); }
@Override public DOMStoreWriteTransaction newWriteOnlyTransaction(TransactionIdentifier identifier) { return super.newWriteOnlyTransaction(identifier); }
@Override public void closeTransaction() { txDelegate.close(); } }
@Override protected void removeRegistration() { AbstractDOMStoreTreeChangePublisher.this.removeRegistration(node, this); registrationRemoved(this); } };
/** * Creates a new read-only transaction. * * @param identifier Transaction Identifier * @param debug Enable transaction debugging * @param snapshot Snapshot which will be modified. */ public static <T> SnapshotBackedReadTransaction<T> newReadTransaction(final T identifier, final boolean debug, final DataTreeSnapshot snapshot) { return new SnapshotBackedReadTransaction<>(identifier, debug, snapshot); }
/** * Creates a new read-write transaction. * * @param identifier transaction Identifier * @param debug Enable transaction debugging * @param snapshot Snapshot which will be modified. * @param readyImpl Implementation of ready method. */ public static <T> SnapshotBackedReadWriteTransaction<T> newReadWriteTransaction(final T identifier, final boolean debug, final DataTreeSnapshot snapshot, final TransactionReadyPrototype<T> readyImpl) { return new SnapshotBackedReadWriteTransaction<T>(identifier, debug, snapshot, readyImpl); }
protected AbstractSnapshotBackedTransactionChain() { idleState = new Idle(this); state = idleState; }
@Override protected DataTreeSnapshot getSnapshot(Object transactionId) { return chain.takeSnapshot(); } }
@Override protected void removeRegistration() { AbstractDOMStoreTreeChangePublisher.this.removeRegistration(node, this); registrationRemoved(this); } };
/** * Creates a new read-only transaction. * * @param identifier Transaction Identifier * @param debug Enable transaction debugging * @param snapshot Snapshot which will be modified. */ public static <T> SnapshotBackedReadTransaction<T> newReadTransaction(final T identifier, final boolean debug, final DataTreeSnapshot snapshot) { return new SnapshotBackedReadTransaction<T>(identifier, debug, snapshot); }
/** * Creates a new read-write transaction. * * @param identifier transaction Identifier * @param debug Enable transaction debugging * @param snapshot Snapshot which will be modified. * @param readyImpl Implementation of ready method. */ public static <T> SnapshotBackedReadWriteTransaction<T> newReadWriteTransaction(final T identifier, final boolean debug, final DataTreeSnapshot snapshot, final TransactionReadyPrototype<T> readyImpl) { return new SnapshotBackedReadWriteTransaction<>(identifier, debug, snapshot, readyImpl); }