Interface DOMTransactionChain
-
- All Superinterfaces:
AsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>,AutoCloseable,TransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
- All Known Implementing Classes:
ForwardingDOMTransactionChain,PingPongTransactionChain
@Deprecated(forRemoval=true) public interface DOMTransactionChain extends TransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>
Deprecated, for removal: This API element is subject to removal in a future version.UseDOMTransactionChaininstead.A chain of DOM Data transactions.Transactions in a chain need to be committed in sequence and each transaction should see the effects of previous transactions as if they happened. A chain makes no guarantees of atomicity, in fact transactions are committed as soon as possible.
This interface is type capture of
TransactionChainfor DOM Data Contracts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DOMDataReadOnlyTransactionnewReadOnlyTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Create a new read only transaction which will continue the chain.DOMDataReadWriteTransactionnewReadWriteTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Create a new read-write transaction which will continue the chain.DOMDataWriteTransactionnewWriteOnlyTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Create a new write-only transaction which will continue the chain.-
Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.TransactionChain
close
-
-
-
-
Method Detail
-
newReadOnlyTransaction
DOMDataReadOnlyTransaction newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChainCreate a new read only transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submitwas invoked) or CANCELLED (closewas invoked).The returned read-only transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this read-only transaction will see the state changes made by the previous write transaction in the chain. However, state which was introduced by other transactions outside this transaction chain after creation of the previous transaction is not visible.
- Specified by:
newReadOnlyTransactionin interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>- Specified by:
newReadOnlyTransactionin interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>- Returns:
- New transaction in the chain.
-
newReadWriteTransaction
DOMDataReadWriteTransaction newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChainCreate a new read-write transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submitwas invoked) or CANCELLED (closewas invoked).The returned read-write transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this read-write transaction will see the state changes made by the previous write transaction in the chain. However, state which was introduced by other transactions outside this transaction chain after creation of the previous transaction is not visible.
Committing this read-write transaction using
submitwill submit the state changes in this transaction to be visible to any subsequent transaction in this chain and also to any transaction outside this chain.- Specified by:
newReadWriteTransactionin interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>- Specified by:
newReadWriteTransactionin interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>- Returns:
- New transaction in the chain.
-
newWriteOnlyTransaction
DOMDataWriteTransaction newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChainCreate a new write-only transaction which will continue the chain.The previous write transaction has to be either SUBMITTED (
submitwas invoked) or CANCELLED (closewas invoked).The returned write-only transaction presents an isolated view of the data if the previous write transaction was successful - in other words, this write-only transaction will see the state changes made by the previous write transaction in the chain. However, state which was introduced by other transactions outside this transaction chain after creation of the previous transaction is not visible.
Committing this write-only transaction using
submitwill submit the state changes in this transaction to be visible to any subsequent transaction in this chain and also to any transaction outside this chain.- Specified by:
newWriteOnlyTransactionin interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>- Specified by:
newWriteOnlyTransactionin interfaceTransactionChain<YangInstanceIdentifier,NormalizedNode<?,?>>- Returns:
- New transaction in the chain.
-
-