Use DataTreeChangeListener instead of DataChangeListener
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / ovsdb / transact / TransactCommand.java
index 7d265e7213fdf92d6ceeb05ced578506496d3aa7..971e6a386a6adf3521904fb901ccf3b0662d492a 100644 (file)
@@ -7,8 +7,12 @@
  */
 package org.opendaylight.ovsdb.southbound.ovsdb.transact;
 
+import java.util.Collection;
+
+import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent;
 import org.opendaylight.ovsdb.lib.operations.TransactionBuilder;
+import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
@@ -26,4 +30,15 @@ public interface TransactCommand {
      */
     void execute(TransactionBuilder transaction, BridgeOperationalState state,
                  AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> events);
+
+    /**
+     * Queue the command defined by the class implementing this interface in the given transaction builder, with the
+     * given bridge state, in reaction to the given modifications.
+     *
+     * @param transaction The transaction builder.
+     * @param state The bridge state.
+     * @param modifications The modifications to be represented.
+     */
+    void execute(TransactionBuilder transaction, BridgeOperationalState state,
+                 Collection<DataTreeModification<Node>> modifications);
 }