@Beta @Singleton public class DataTreeEventCallbackRegistrarImpl extends Object implements DataTreeEventCallbackRegistrar
DataTreeEventCallbackRegistrar.NextAction
Constructor and Description |
---|
DataTreeEventCallbackRegistrarImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker) |
DataTreeEventCallbackRegistrarImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
ScheduledExecutorService scheduledExecutorService) |
Modifier and Type | Method and Description |
---|---|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onAdd(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
Function<T,DataTreeEventCallbackRegistrar.NextAction> callback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onAdd(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
Function<T,DataTreeEventCallbackRegistrar.NextAction> callback,
Duration timeoutDuration,
Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onAddOrUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback)
Call back when expected instance was added or updated, with NextAction support.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onAddOrUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback,
Duration timeoutDuration,
Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onRemove(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
Function<T,DataTreeEventCallbackRegistrar.NextAction> callback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onRemove(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
Function<T,DataTreeEventCallbackRegistrar.NextAction> callback,
Duration timeoutDuration,
Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
onUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback,
Duration timeoutDuration,
Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onAdd, onAdd, onAddOrUpdate, onAddOrUpdate, onRemove, onRemove, onUpdate, onUpdate
@Inject public DataTreeEventCallbackRegistrarImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
public DataTreeEventCallbackRegistrarImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ScheduledExecutorService scheduledExecutorService)
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback)
onUpdate
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback, Duration timeoutDuration, Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback)
onUpdate
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onAdd(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, Function<T,DataTreeEventCallbackRegistrar.NextAction> callback)
onAdd
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onAdd(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, Function<T,DataTreeEventCallbackRegistrar.NextAction> callback, Duration timeoutDuration, Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback)
onAdd
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onAddOrUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback)
DataTreeEventCallbackRegistrar
onAddOrUpdate
in interface DataTreeEventCallbackRegistrar
store
- the expected data storepath
- the path to watch for changes oncallback
- the callback as BiFunction
, where the first argument is the data before the update
or null in case of an add, the second argument is the data after the update (or add; never null),
and the returned value determines whether to keep listening for changes or not anymore.public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onAddOrUpdate(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, BiFunction<T,T,DataTreeEventCallbackRegistrar.NextAction> callback, Duration timeoutDuration, Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback)
onAddOrUpdate
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onRemove(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, Function<T,DataTreeEventCallbackRegistrar.NextAction> callback)
onRemove
in interface DataTreeEventCallbackRegistrar
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void onRemove(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, Function<T,DataTreeEventCallbackRegistrar.NextAction> callback, Duration timeoutDuration, Consumer<org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T>> timedOutCallback)
onRemove
in interface DataTreeEventCallbackRegistrar
Copyright © 2019 OpenDaylight. All rights reserved.