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

  • All Implemented Interfaces:
    EventListener, ChainableDataTreeChangeListener<T>

    public final class ChainableDataTreeChangeListenerImpl<T extends org.opendaylight.yangtools.yang.binding.DataObject>
    extends Object
    implements ChainableDataTreeChangeListener<T>
    Default implementation of ChainableDataTreeChangeListener.

    Suitable as a delegate for listeners implementing ChainableDataTreeChangeListener.

    Author:
    Michael Vorburger
    • Constructor Detail

      • ChainableDataTreeChangeListenerImpl

        public ChainableDataTreeChangeListenerImpl()
    • Method Detail

      • addBeforeListener

        public void addBeforeListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> listener)
        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)
        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)
      • notifyAfterOnDataTreeChanged

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