Class AsyncDataTreeChangeListenerBase<T extends org.opendaylight.yangtools.yang.binding.DataObject,​K extends org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>>

  • 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 use AbstractAsyncDataTreeChangeListener instead of this!
    Deprecated DS listener.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<T> clazz
      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.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clazz

        protected final java.lang.Class<T extends org.opendaylight.yangtools.yang.binding.DataObject> clazz
        Deprecated.
    • Constructor Detail

      • AsyncDataTreeChangeListenerBase

        protected AsyncDataTreeChangeListenerBase()
        Deprecated.
      • AsyncDataTreeChangeListenerBase

        protected AsyncDataTreeChangeListenerBase​(org.opendaylight.infrautils.metrics.MetricProvider metricProvider)
        Deprecated.
      • AsyncDataTreeChangeListenerBase

        @Deprecated
        public AsyncDataTreeChangeListenerBase​(java.lang.Class<T> clazz,
                                               java.lang.Class<K> eventClazz)
        Deprecated.
    • Method Detail

      • addBeforeListener

        public void addBeforeListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
        Deprecated.
        Specified by:
        addBeforeListener in interface org.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 interface org.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 interface org.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 interface java.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.