Interface DataBroker
-
- All Superinterfaces:
AsyncDataBroker<InstanceIdentifier<?>,DataObject>
,AsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>
,BindingAwareService
,BindingService
,DataTreeChangeService
,TransactionChainFactory<InstanceIdentifier<?>,DataObject>
,TransactionFactory
- All Known Implementing Classes:
BindingDOMDataBrokerAdapter
,ForwardingDataBroker
@Deprecated(forRemoval=true) public interface DataBroker extends AsyncDataBroker<InstanceIdentifier<?>,DataObject>, TransactionChainFactory<InstanceIdentifier<?>,DataObject>, TransactionFactory, BindingService, DataTreeChangeService
Deprecated, for removal: This API element is subject to removal in a future version.UseDataBroker
insteadProvides access to a conceptual data tree store and also provides the ability to subscribe for changes to data under a given branch of the tree.For more information on usage, please see the documentation in
AsyncDataBroker
.- See Also:
AsyncDataBroker
,TransactionChainFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BindingTransactionChain
createTransactionChain(TransactionChainListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new transaction chain.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.binding.api.DataTreeChangeService
registerDataTreeChangeListener
-
-
-
-
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 interfaceAsyncDataBroker<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadOnlyTransaction
in interfaceAsyncDataTransactionFactory<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 interfaceAsyncDataBroker<InstanceIdentifier<?>,DataObject>
- Specified by:
newReadWriteTransaction
in interfaceAsyncDataTransactionFactory<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 interfaceAsyncDataBroker<InstanceIdentifier<?>,DataObject>
- Specified by:
newWriteOnlyTransaction
in interfaceAsyncDataTransactionFactory<InstanceIdentifier<?>,DataObject>
- Specified by:
newWriteOnlyTransaction
in interfaceTransactionFactory
- Returns:
- new write-only transaction
-
createTransactionChain
BindingTransactionChain createTransactionChain(TransactionChainListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChainFactory
Create a new transaction chain. The chain will be initialized to read from its backing datastore, with no outstanding transaction. Listener will be registered to handle chain-level events.- Specified by:
createTransactionChain
in interfaceTransactionChainFactory<InstanceIdentifier<?>,DataObject>
- Parameters:
listener
- Transaction chain event listener- Returns:
- A new transaction chain.
-
-