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.UseTransactionChain
instead.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 ReadOnlyTransaction
newReadOnlyTransaction()
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.ReadWriteTransaction
newReadWriteTransaction()
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.WriteTransaction
newWriteOnlyTransaction()
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:AsyncDataTransactionFactory
Allocates 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:
newReadOnlyTransaction
in interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadOnlyTransaction
in interfaceTransactionChain<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadOnlyTransaction
in 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:AsyncDataTransactionFactory
Allocates 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:
newReadWriteTransaction
in interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadWriteTransaction
in interfaceTransactionChain<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadWriteTransaction
in 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:AsyncDataTransactionFactory
Allocates 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:
newWriteOnlyTransaction
in interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>
- Specified by:
newWriteOnlyTransaction
in interfaceTransactionChain<InstanceIdentifier<?>,DataObject>
- Specified by:
newWriteOnlyTransaction
in interfaceTransactionFactory
- Returns:
- new write-only transaction
-
-