Class ChainableDataTreeChangeListenerImpl<T extends org.opendaylight.yangtools.yang.binding.DataObject>

java.lang.Object
org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListenerImpl<T>
All Implemented Interfaces:
EventListener, ChainableDataTreeChangeListener<T>

@Deprecated public final class ChainableDataTreeChangeListenerImpl<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends Object implements ChainableDataTreeChangeListener<T>
Deprecated.
Use listener-api instead.
Default implementation of ChainableDataTreeChangeListener.

Suitable as a delegate for listeners implementing ChainableDataTreeChangeListener.

Author:
Michael Vorburger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> listener)
    Deprecated.
    Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded AFTER having been processed by this DataTreeChangeListener.
    void
    addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> listener)
    Deprecated.
    Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded BEFORE having been processed by this DataTreeChangeListener.
    void
    notifyAfterOnDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes)
    Deprecated.
     
    void
    notifyBeforeOnDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChainableDataTreeChangeListenerImpl

      public ChainableDataTreeChangeListenerImpl()
      Deprecated.
  • Method Details

    • addBeforeListener

      public void addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> listener)
      Deprecated.
      Description copied from interface: ChainableDataTreeChangeListener
      Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded BEFORE having been processed by this DataTreeChangeListener.

      If an asychronous DataTreeChangeListener supports chaining, it must forward the onDataTreeChanged() call BEFORE event are submitted to its async executor for processing.

      Specified by:
      addBeforeListener in interface ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      Parameters:
      listener - the chained DataTreeChangeListener to invoke after this one
    • addAfterListener

      public void addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> listener)
      Deprecated.
      Description copied from interface: ChainableDataTreeChangeListener
      Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded AFTER having been processed by this DataTreeChangeListener.

      If an asychronous DataTreeChangeListener supports chaining, it must forward the onDataTreeChanged() call ONLY AFTER its async executor processed the event.

      Specified by:
      addAfterListener in interface ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      Parameters:
      listener - the chained DataTreeChangeListener to invoke after this one
    • notifyBeforeOnDataTreeChanged

      public void notifyBeforeOnDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes)
      Deprecated.
    • notifyAfterOnDataTreeChanged

      public void notifyAfterOnDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> changes)
      Deprecated.