Class AsyncDataTreeChangeListenerBase<T extends org.opendaylight.yangtools.yang.binding.DataObject,K extends org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>>
- java.lang.Object
-
- org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<T,K>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.EventListener
,org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>
,org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T>
- Direct Known Subclasses:
HwvtepAbstractDataTreeChangeListener
@Deprecated public abstract class AsyncDataTreeChangeListenerBase<T extends org.opendaylight.yangtools.yang.binding.DataObject,K extends org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>> extends java.lang.Object implements org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>, org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T>, java.lang.AutoCloseable
Deprecated.Please useAbstractAsyncDataTreeChangeListener
instead of this!Deprecated DS listener.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AsyncDataTreeChangeListenerBase.DataTreeChangeHandler
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AsyncDataTreeChangeListenerBase()
Deprecated.AsyncDataTreeChangeListenerBase(java.lang.Class<T> clazz, java.lang.Class<K> eventClazz)
Deprecated.protected
AsyncDataTreeChangeListenerBase(org.opendaylight.infrautils.metrics.MetricProvider metricProvider)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract void
add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModification)
Deprecated.void
addAfterListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
Deprecated.void
addBeforeListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
Deprecated.void
close()
Deprecated.void
deregisterListener()
Deprecated.protected abstract K
getDataTreeChangeListener()
Deprecated.protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>
getWildCardPath()
Deprecated.protected void
init()
Deprecated.Subclasses override this and place initialization logic here, notably calls to registerListener().void
onDataTreeChanged(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
Deprecated.void
registerListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType dsType, org.opendaylight.controller.md.sal.binding.api.DataBroker db)
Deprecated.protected abstract void
remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModification)
Deprecated.protected abstract void
update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModificationBefore, T dataObjectModificationAfter)
Deprecated.
-
-
-
Field Detail
-
clazz
protected final java.lang.Class<T extends org.opendaylight.yangtools.yang.binding.DataObject> clazz
Deprecated.
-
-
Method Detail
-
addBeforeListener
public void addBeforeListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
Deprecated.- Specified by:
addBeforeListener
in interfaceorg.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
addAfterListener
public void addAfterListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
Deprecated.- Specified by:
addAfterListener
in interfaceorg.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
onDataTreeChanged
public void onDataTreeChanged(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
Deprecated.- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
registerListener
public void registerListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType dsType, org.opendaylight.controller.md.sal.binding.api.DataBroker db)
Deprecated.
-
init
@PostConstruct protected void init()
Deprecated.Subclasses override this and place initialization logic here, notably calls to registerListener(). Note that the overriding method MUST repeat the PostConstruct annotation, because JSR 250 specifies that lifecycle methods "are called unless a subclass of the declaring class overrides the method without repeating the annotation". (The blueprint-maven-plugin would gen. XML which calls PostConstruct annotated methods even if they are in a subclass without repeating the annotation, but this is wrong and not JSR 250 compliant, and while working in BP, then causes issues e.g. when wiring with Guice for tests, so do always repeat it.)
-
deregisterListener
public void deregisterListener()
Deprecated.
-
close
@PreDestroy public void close()
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
getWildCardPath
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> getWildCardPath()
Deprecated.
-
remove
protected abstract void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModification)
Deprecated.
-
update
protected abstract void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModificationBefore, T dataObjectModificationAfter)
Deprecated.
-
add
protected abstract void add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> key, T dataObjectModification)
Deprecated.
-
getDataTreeChangeListener
protected abstract K getDataTreeChangeListener()
Deprecated.
-
-