@Beta public interface DOMDataTreeShardWriteTransaction extends DOMDataTreeCursorProvider
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this transaction and all other foreign shard transactions that were opened as a part of this transaction.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
commit() |
@NonNull DOMDataTreeWriteCursor |
createCursor(@NonNull DOMDataTreeIdentifier prefix)
Create a new write cursor.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
prepare() |
void |
ready()
Finish this transaction and submit it for processing.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
submit() |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
validate() |
@NonNull DOMDataTreeWriteCursor createCursor(@NonNull DOMDataTreeIdentifier prefix)
DOMDataTreeCursor.close()d.createCursor in interface DOMDataTreeCursorProviderprefix - Tree identifier of the apex at which the cursor is rooted.IllegalStateException - if a previous cursor has not been closed.NullPointerException - if prefix is null.void ready()
FIXME: this method should accept a callback which will report success/failure. Let's not use a CheckedFuture due to overhead associated with attaching listeners to them.
IllegalStateException - if this transaction has an unclosed cursor.void close()
com.google.common.util.concurrent.ListenableFuture<Void> submit()
com.google.common.util.concurrent.ListenableFuture<Boolean> validate()
com.google.common.util.concurrent.ListenableFuture<Void> prepare()
com.google.common.util.concurrent.ListenableFuture<Void> commit()
Copyright © 2019 OpenDaylight. All rights reserved.