package org.opendaylight.sfc.provider.listeners;
import java.util.Collection;
+import javax.annotation.Nonnull;
import org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener;
import org.opendaylight.controller.md.sal.binding.api.DataObjectModification;
import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
* date tree, and depending on the type of modification, it invokes the
* appropriate method on the derived classes.
*
+ * @param <T> type of the data object the listener is registered to.
*
- * @param <T>
- * type of the data object the listener is registered to.
+ * @deprecated this class is deprecated, use the
+ * {@link org.opendaylight.genius.datastoreutils.listeners.AbstractClusteredSyncDataTreeChangeListener} in Genius.
*/
+@Deprecated
public abstract class AbstractClusteredDataTreeChangeListener<T extends DataObject>
implements ClusteredDataTreeChangeListener<T>, AutoCloseable {
@Override
- public void onDataTreeChanged(Collection<DataTreeModification<T>> collection) {
+ public void onDataTreeChanged(@Nonnull Collection<DataTreeModification<T>> collection) {
for (final DataTreeModification<T> dataTreeModification : collection) {
final DataObjectModification<T> dataObjectModification = dataTreeModification.getRootNode();
switch (dataObjectModification.getModificationType()) {
package org.opendaylight.sfc.provider.listeners;
import java.util.Collection;
+import javax.annotation.Nonnull;
import org.opendaylight.controller.md.sal.binding.api.DataObjectModification;
import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener;
import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
* data tree, and depending on the type of modification, it invokes the
* appropriate method on the derived classes.
*
+ * @param <T> type of the data object the listener is registered to.
- *
- * @param <T>
- * type of the data object the listener is registered to.
+ * @deprecated this class is deprecated, use the
+ * {@link org.opendaylight.genius.datastoreutils.listeners.AbstractSyncDataTreeChangeListener} available in Genius.
*/
+@Deprecated
public abstract class AbstractDataTreeChangeListener<T extends DataObject>
implements DataTreeChangeListener<T>, AutoCloseable {
@Override
- public void onDataTreeChanged(Collection<DataTreeModification<T>> collection) {
+ public void onDataTreeChanged(@Nonnull Collection<DataTreeModification<T>> collection) {
for (final DataTreeModification<T> dataTreeModification : collection) {
final DataObjectModification<T> dataObjectModification = dataTreeModification.getRootNode();
switch (dataObjectModification.getModificationType()) {