Make Rpc/Action extend DOMOperationImplementation 78/74178/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Jul 2018 13:10:47 +0000 (15:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Jul 2018 13:12:04 +0000 (15:12 +0200)
This is an API omission preventing implementations from working
with AvailabilityExtension.

Change-Id: Iad2efc6aa5b4fb9c4ef4065c8f81d8eaf312d369
Signed-off-by: Jie Han <han.jie@zte.com.cn>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMOperationImplementation.java

index 39c75d72d346c7c128add7d6b9e18603f1b3e857..19f4cc233233f8a6720123f0e120ed4300f49d17 100644 (file)
@@ -28,7 +28,7 @@ public interface DOMOperationImplementation {
      * An implementation of an {@code action}.
      */
     @FunctionalInterface
-    interface Action {
+    interface Action extends DOMOperationImplementation {
         /**
          * Initiate invocation of the RPC. Implementations of this method are expected to not block.
          *
@@ -47,7 +47,7 @@ public interface DOMOperationImplementation {
      * An implementation of an {@code rpc}.
      */
     @FunctionalInterface
-    interface Rpc {
+    interface Rpc extends DOMOperationImplementation {
         /**
          * Initiate invocation of the RPC. Implementations of this method are expected to not block.
          *