public interface DOMDataTreeCursorAwareTransaction extends DOMDataTreeCursorProvider, org.opendaylight.yangtools.concepts.Identifiable<Object>
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancels the transaction.
|
com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> |
commit()
Submits this transaction to be asynchronously applied to update the logical data tree.
|
DOMDataTreeWriteCursor |
createCursor(DOMDataTreeIdentifier path)
Create a
DOMDataTreeWriteCursor anchored at the specified path. |
DOMDataTreeWriteCursor createCursor(DOMDataTreeIdentifier path)
DOMDataTreeWriteCursor
anchored at the specified path.
There can only be one cursor open at a time.createCursor
in interface DOMDataTreeCursorProvider
path
- Path at which the cursor is to be anchoredIllegalStateException
- when there's an open cursor, or this transaction is closed already.boolean cancel()
commit()
already
successfully completed will always fail (return false).com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> commit()
Note: It is strongly recommended to process the CheckedFuture 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.
TransactionCommitFailedException
or an exception derived from TransactionCommitFailedException.Copyright © 2019 OpenDaylight. All rights reserved.