@Deprecated public abstract class ForwardingDataBroker extends com.google.common.collect.ForwardingObject implements DataBroker
DataBroker implementation which forwards all interface method
invocation to a delegate instance.| Constructor and Description |
|---|
ForwardingDataBroker()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
BindingTransactionChain |
createTransactionChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
Deprecated.
|
protected abstract @NonNull DataBroker |
delegate()
Deprecated.
|
ReadOnlyTransaction |
newReadOnlyTransaction()
Deprecated.
|
ReadWriteTransaction |
newReadWriteTransaction()
Deprecated.
|
WriteTransaction |
newWriteOnlyTransaction()
Deprecated.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject,L extends DataTreeChangeListener<T>> |
registerDataTreeChangeListener(DataTreeIdentifier<T> treeId,
L listener)
Deprecated.
Registers a
DataTreeChangeListener to receive
notifications when data changes under a given path in the conceptual data
tree. |
protected abstract @NonNull DataBroker delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic ReadOnlyTransaction newReadOnlyTransaction()
newReadOnlyTransaction in interface DataBrokernewReadOnlyTransaction in interface TransactionFactorynewReadOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>newReadOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>public ReadWriteTransaction newReadWriteTransaction()
newReadWriteTransaction in interface DataBrokernewReadWriteTransaction in interface TransactionFactorynewReadWriteTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>newReadWriteTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>public WriteTransaction newWriteOnlyTransaction()
newWriteOnlyTransaction in interface DataBrokernewWriteOnlyTransaction in interface TransactionFactorynewWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>newWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>public <T extends org.opendaylight.yangtools.yang.binding.DataObject,L extends DataTreeChangeListener<T>> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerDataTreeChangeListener(DataTreeIdentifier<T> treeId, L listener)
DataTreeChangeServiceDataTreeChangeListener to receive
notifications when data changes under a given path in the conceptual data
tree.
You are able to register for notifications for any node or subtree
which can be represented using DataTreeIdentifier.
You are able to register for data change notifications for a subtree or leaf even if it does not exist. You will receive notification once that node is created.
If there is any pre-existing data in the data tree for the path for which you are registering, you will receive an initial data change event, which will contain all pre-existing data, marked as created.
This method returns a ListenerRegistration object. To
"unregister" your listener for changes call the ListenerRegistration.close()
method on the returned object.
You MUST explicitly unregister your listener when you no longer want to receive notifications. This is especially true in OSGi environments, where failure to do so during bundle shutdown can lead to stale listeners being still registered.
registerDataTreeChangeListener in interface DataTreeChangeServicetreeId - Data tree identifier of the subtree which should be watched for
changes.listener - Listener instance which is being registeredListenerRegistration.close() to stop
delivery of change events.public BindingTransactionChain createTransactionChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
createTransactionChain in interface DataBrokercreateTransactionChain in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>Copyright © 2020 OpenDaylight. All rights reserved.