T
- Identifier type@Beta public class SnapshotBackedWriteTransaction<T> extends AbstractDOMStoreTransaction<T> implements DOMStoreWriteTransaction, SnapshotBackedTransaction
DataTreeSnapshot
and executed according to
SnapshotBackedWriteTransaction.TransactionReadyPrototype
.Modifier and Type | Class and Description |
---|---|
static class |
SnapshotBackedWriteTransaction.TransactionReadyPrototype<T>
Prototype implementation of
ready() . |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Add class-specific toString attributes.
|
void |
close() |
void |
delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
Deletes data and whole subtree located at provided path.
|
Optional<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeSnapshot> |
getSnapshot()
Returns the
DataTreeSnapshot underlying this transaction. |
void |
merge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
Store a provided data at specified path.
|
DOMStoreThreePhaseCommitCohort |
ready()
Seals transaction, and returns three-phase commit cohort associated
with this transaction and DOM Store to be coordinated by coordinator.
|
void |
write(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
Store a provided data at specified path.
|
getDebugContext, getIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier
public void write(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
DOMStoreWriteTransaction
If you need add or merge of current object with specified use
DOMStoreWriteTransaction.merge(YangInstanceIdentifier, NormalizedNode)
write
in interface DOMStoreWriteTransaction
path
- YangInstanceIdentifier object to be writtendata
- Data object to be writtenpublic void merge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
DOMStoreWriteTransaction
If you need add or merge of current object with specified use
DOMStoreWriteTransaction.merge(YangInstanceIdentifier, NormalizedNode)
merge
in interface DOMStoreWriteTransaction
path
- YangInstanceIdentifier object to be mergeddata
- Data object to be writtenpublic void delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
DOMStoreWriteTransaction
delete
in interface DOMStoreWriteTransaction
path
- Path to deletepublic DOMStoreThreePhaseCommitCohort ready()
DOMStoreWriteTransaction
ready
in interface DOMStoreWriteTransaction
public void close()
close
in interface AutoCloseable
close
in interface DOMStoreTransaction
public Optional<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeSnapshot> getSnapshot()
SnapshotBackedTransaction
DataTreeSnapshot
underlying this transaction. If this transaction is no longer open,
Optional.empty()
is returned.getSnapshot
in interface SnapshotBackedTransaction
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
AbstractDOMStoreTransaction
addToStringAttributes
in class AbstractDOMStoreTransaction<T>
toStringHelper
- ToStringHelper instanceCopyright © 2019 OpenDaylight. All rights reserved.