public class BindingDOMCursorAwareWriteTransactionAdapter<T extends DOMDataTreeCursorAwareTransaction> extends Object implements CursorAwareWriteTransaction
| Constructor and Description |
|---|
BindingDOMCursorAwareWriteTransactionAdapter(T delegate,
BindingToNormalizedNodeCodec codec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels the transaction.
|
com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> |
commit()
Commits this transaction to be asynchronously applied to update the logical data tree.
|
<P extends DataObject> |
createCursor(DataTreeIdentifier<P> path)
Create a
DataTreeWriteCursor anchored at the specified path. |
protected BindingToNormalizedNodeCodec |
getCodec() |
T |
getDelegate() |
public BindingDOMCursorAwareWriteTransactionAdapter(T delegate, BindingToNormalizedNodeCodec codec)
public <P extends DataObject> DataTreeWriteCursor createCursor(DataTreeIdentifier<P> path)
CursorAwareWriteTransactionDataTreeWriteCursor anchored at the specified path.
There can only be one cursor open at a time.
createCursor in interface CursorAwareWriteTransactioncreateCursor in interface DataTreeCursorProviderpath - Path at which the cursor is to be anchoredpublic boolean cancel()
CursorAwareWriteTransactionA transaction can only be cancelled if it has not yet been committed.
Invoking cancel() on failed or already canceled will have no effect, and transaction is considered cancelled.
Invoking cancel() on finished transaction (future returned by CursorAwareWriteTransaction.commit() already
successfully completed) will always fail (return false).
cancel in interface CursorAwareWriteTransactionpublic com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> commit()
CursorAwareWriteTransactionNote: It is strongly recommended to process the FluentFuture result in an asynchronous manner rather than using the blocking get() method.
This call logically seals the transaction, which prevents the client from further changing
data tree using this transaction's cursor. Any subsequent calls to
createCursorCursor(DOMDataTreeIdentifier
or any of the cursor's methods will fail with IllegalStateException.
The transaction is marked as submitted and enqueued into the shard back-end for processing.
commit in interface CursorAwareWriteTransactionTransactionCommitFailedException or an exception derived from TransactionCommitFailedException.public final T getDelegate()
getDelegate in interface org.opendaylight.yangtools.concepts.Delegator<T>protected final BindingToNormalizedNodeCodec getCodec()
Copyright © 2019 OpenDaylight. All rights reserved.