Interface BindingTransactionChain
-
- All Superinterfaces:
AsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>,AutoCloseable,TransactionChain<InstanceIdentifier<?>,DataObject>,TransactionFactory
@Deprecated(forRemoval=true) public interface BindingTransactionChain extends TransactionFactory, TransactionChain<InstanceIdentifier<?>,DataObject>
Deprecated, for removal: This API element is subject to removal in a future version.UseTransactionChaininstead.A chain of transactions.For more information about transaction chaining and transaction chains see
TransactionChain.- See Also:
TransactionChain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ReadOnlyTransactionnewReadOnlyTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Allocates a new read-only transaction which provides an immutable snapshot of the data tree.ReadWriteTransactionnewReadWriteTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Allocates new read-write transaction which provides a mutable view of the data tree.WriteTransactionnewWriteOnlyTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Allocates new write-only transaction based on latest state of data tree.-
Methods inherited from interface org.opendaylight.controller.md.sal.common.api.data.TransactionChain
close
-
-
-
-
Method Detail
-
newReadOnlyTransaction
ReadOnlyTransaction newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactoryAllocates a new read-only transaction which provides an immutable snapshot of the data tree.The view of data tree is an immutable snapshot of current data tree state when transaction was allocated.
- Specified by:
newReadOnlyTransactionin interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>- Specified by:
newReadOnlyTransactionin interfaceTransactionChain<InstanceIdentifier<?>,DataObject>- Specified by:
newReadOnlyTransactionin interfaceTransactionFactory- Returns:
- new read-only transaction
-
newReadWriteTransaction
ReadWriteTransaction newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactoryAllocates new read-write transaction which provides a mutable view of the data tree.Preconditions for mutation of data tree are captured from the snapshot of data tree state, when the transaction is allocated. If data was changed during transaction in an incompatible way then the commit of this transaction will fail. See
AsyncWriteTransaction.submit()for more details about conflicting and not-conflicting changes and failure scenarios.- Specified by:
newReadWriteTransactionin interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>- Specified by:
newReadWriteTransactionin interfaceTransactionChain<InstanceIdentifier<?>,DataObject>- Specified by:
newReadWriteTransactionin interfaceTransactionFactory- Returns:
- new read-write transaction
-
newWriteOnlyTransaction
WriteTransaction newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactoryAllocates new write-only transaction based on latest state of data tree.Preconditions for mutation of data tree are captured from the snapshot of data tree state, when the transaction is allocated. If data was changed during transaction in an incompatible way then the commit of this transaction will fail. See
AsyncWriteTransaction.submit()for more details about conflicting and not-conflicting changes and failure scenarios.Since this transaction does not provide a view of the data it SHOULD BE used only by callers which are exclusive writers (exporters of data) to the subtree they modify. This prevents optimistic lock failures as described in
AsyncWriteTransaction.submit().Exclusivity of writers to particular subtree SHOULD BE enforced by external locking mechanism.
- Specified by:
newWriteOnlyTransactionin interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>- Specified by:
newWriteOnlyTransactionin interfaceTransactionChain<InstanceIdentifier<?>,DataObject>- Specified by:
newWriteOnlyTransactionin interfaceTransactionFactory- Returns:
- new write-only transaction
-
-