Migrate off deprecated APIs, to mdsal.binding.api.DataBroker
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / mef / nrp / api / ActivationDriver.java
index c288590430c715a35d8fb15a5c0faa93a23e91be..645279a12688d386fa704034f3acb31d4899f854 100644 (file)
@@ -8,8 +8,8 @@
 package org.opendaylight.unimgr.mef.nrp.api;
 
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 
-import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.unimgr.mef.nrp.common.ResourceActivatorException;
 import org.opendaylight.yang.gen.v1.urn.mef.yang.nrp._interface.rev180321.NrpConnectivityServiceAttrs;
 
@@ -47,27 +47,30 @@ public interface ActivationDriver {
 
     /**
      * Performs the activation action.
-     * @throws TransactionCommitFailedException transaction commit failed
      * @throws ResourceActivatorException activation problem
+     * @throws ExecutionException transaction execution failed
+     * @throws InterruptedException transaction was interrupted
      */
-    void activate() throws TransactionCommitFailedException, ResourceActivatorException;
+    void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;
 
     /**
      * Performs the update action.
-     * @throws TransactionCommitFailedException transaction commit failed
      * @throws ResourceActivatorException activation problem
+     * @throws ExecutionException transaction execution failed
+     * @throws InterruptedException transaction was interrupted
      */
-    default void update() throws TransactionCommitFailedException, ResourceActivatorException {
+    default void update() throws ResourceActivatorException, InterruptedException, ExecutionException {
         deactivate();
         activate();
     }
 
     /**
      * Performs the deactivation action.
-     * @throws TransactionCommitFailedException transaction commit failed
      * @throws ResourceActivatorException activation problem
+     * @throws ExecutionException transaction execution failed
+     * @throws InterruptedException transaction was interrupted
      */
-    void deactivate() throws TransactionCommitFailedException, ResourceActivatorException;
+    void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;
 
 
     /**