Class ChainableClusteredDataTreeChangeListenerBase<T extends org.opendaylight.yangtools.yang.binding.DataObject>
- java.lang.Object
-
- org.opendaylight.genius.datastoreutils.ChainableClusteredDataTreeChangeListenerBase<T>
-
- All Implemented Interfaces:
java.util.EventListener
,org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener<T>
,org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>
,org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T>
public abstract class ChainableClusteredDataTreeChangeListenerBase<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends java.lang.Object implements org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener<T>, org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T>
ClusteredDataTreeChangeListener
which is chain-able (ChainableDataTreeChangeListener
).Do *NOT* use this just in order to be able to wait for change event processing of listeners extending this in tests with the AsyncEventsWaiter. That is not necessary - because this listener is not asynchronous. This is just intended to be used for any other cases where you would like a CDTL to be chainable, not for tests and the AsyncEventsWaiter.
- Author:
- Michael Vorburger
-
-
Constructor Summary
Constructors Constructor Description ChainableClusteredDataTreeChangeListenerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addAfterListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
void
addBeforeListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
void
onDataTreeChanged(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
protected abstract void
onDataTreeChanged2(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
-
-
-
Method Detail
-
addBeforeListener
public void addBeforeListener(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> listener)
- 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)
- Specified by:
addAfterListener
in interfaceorg.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
onDataTreeChanged
public final void onDataTreeChanged(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
onDataTreeChanged2
protected abstract void onDataTreeChanged2(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> changes)
-
-