Interface DOMStoreWriteTransaction
-
- All Superinterfaces:
AutoCloseable
,DOMStoreTransaction
,Identifiable<Object>
- All Known Subinterfaces:
DOMStoreReadWriteTransaction
- All Known Implementing Classes:
SnapshotBackedReadWriteTransaction
,SnapshotBackedWriteTransaction
public interface DOMStoreWriteTransaction extends DOMStoreTransaction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(YangInstanceIdentifier path)
Deletes data and whole subtree located at provided path.void
merge(YangInstanceIdentifier path, 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(YangInstanceIdentifier path, NormalizedNode data)
Store a provided data at specified path.-
Methods inherited from interface org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction
close, getIdentifier
-
-
-
-
Method Detail
-
write
void write(YangInstanceIdentifier path, NormalizedNode data)
Store a provided data at specified path. This acts as a add / replace operation, which is to say that whole subtree will be replaced by specified path.If you need add or merge of current object with specified use
merge(YangInstanceIdentifier, NormalizedNode)
- Parameters:
path
- YangInstanceIdentifier object to be writtendata
- Data object to be written- Throws:
IllegalStateException
- if the client code already sealed transaction and invokedready()
-
merge
void merge(YangInstanceIdentifier path, NormalizedNode data)
Store a provided data at specified path. This acts as a add / replace operation, which is to say that whole subtree will be replaced by specified path.If you need add or merge of current object with specified use
merge(YangInstanceIdentifier, NormalizedNode)
- Parameters:
path
- YangInstanceIdentifier object to be mergeddata
- Data object to be written- Throws:
IllegalStateException
- if the client code already sealed transaction and invokedready()
-
delete
void delete(YangInstanceIdentifier path)
Deletes data and whole subtree located at provided path.- Parameters:
path
- Path to delete- Throws:
IllegalStateException
- if the client code already sealed transaction and invokedready()
-
ready
DOMStoreThreePhaseCommitCohort ready()
Seals transaction, and returns three-phase commit cohort associated with this transaction and DOM Store to be coordinated by coordinator.- Returns:
- Three Phase Commit Cohort instance for this transaction.
-
-