Adjust to mdsal DOM read/exists FluentFuture change
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / ExistsTransactionRequestProxyV1.java
index 4f5bd1c42fc052729aec97c2a209a2e96cf10da9..24299471558bb3be08144ce12ad3831d992414f3 100644 (file)
@@ -17,9 +17,13 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
  *
  * @author Robert Varga
  */
-final class ExistsTransactionRequestProxyV1 extends AbstractReadTransactionRequestProxyV1<ExistsTransactionRequest> {
+final class ExistsTransactionRequestProxyV1 extends
+        AbstractReadPathTransactionRequestProxyV1<ExistsTransactionRequest> {
     private static final long serialVersionUID = 1L;
 
+    // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
+    // be able to create instances via reflection.
+    @SuppressWarnings("checkstyle:RedundantModifier")
     public ExistsTransactionRequestProxyV1() {
         // For Externalizable
     }
@@ -29,8 +33,8 @@ final class ExistsTransactionRequestProxyV1 extends AbstractReadTransactionReque
     }
 
     @Override
-    ExistsTransactionRequest createReadRequest(final TransactionIdentifier target, final ActorRef replyTo,
-            final YangInstanceIdentifier path) {
-        return new ExistsTransactionRequest(target, replyTo, path);
+    ExistsTransactionRequest createReadPathRequest(final TransactionIdentifier target, final long sequence,
+            final ActorRef replyTo, final YangInstanceIdentifier path, final boolean snapshotOnly) {
+        return new ExistsTransactionRequest(target, sequence, replyTo, path, snapshotOnly);
     }
-}
\ No newline at end of file
+}