public interface DOMTransactionChain extends TransactionChain<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
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 TransactionChain
for DOM Data Contracts.
Modifier and Type | Method and Description |
---|---|
DOMDataReadOnlyTransaction |
newReadOnlyTransaction()
Create a new read only transaction which will continue the chain.
|
DOMDataReadWriteTransaction |
newReadWriteTransaction()
Create a new read-write transaction which will continue the chain.
|
DOMDataWriteTransaction |
newWriteOnlyTransaction()
Create a new write-only transaction which will continue the chain.
|
close
DOMDataReadOnlyTransaction newReadOnlyTransaction()
TransactionChain
The previous write transaction has to be either SUBMITTED
(submit
was invoked) or CANCELLED
(close
was 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.
newReadOnlyTransaction
in interface AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
newReadOnlyTransaction
in interface TransactionChain<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
DOMDataReadWriteTransaction newReadWriteTransaction()
TransactionChain
The previous write transaction has to be either SUBMITTED
(submit
was invoked) or CANCELLED
(close
was 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 submit
will 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.
newReadWriteTransaction
in interface AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
newReadWriteTransaction
in interface TransactionChain<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
DOMDataWriteTransaction newWriteOnlyTransaction()
TransactionChain
The previous write transaction has to be either SUBMITTED
(submit
was invoked) or CANCELLED
(close
was 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 submit
will 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.
newWriteOnlyTransaction
in interface AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
newWriteOnlyTransaction
in interface TransactionChain<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
Copyright © 2019 OpenDaylight. All rights reserved.