BUG-8422: separate retry and request timeouts
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / PurgeLocalHistoryRequestProxyV1.java
index 0aaac6e32a672ca0715523d1b92bc9cfa6c36321..11c344f5394dbc21e0869462d3db0686219a3e3f 100644 (file)
@@ -19,6 +19,9 @@ import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifie
 final class PurgeLocalHistoryRequestProxyV1 extends AbstractLocalHistoryRequestProxy<PurgeLocalHistoryRequest> {
     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 PurgeLocalHistoryRequestProxyV1() {
         // For Externalizable
     }
@@ -28,7 +31,8 @@ final class PurgeLocalHistoryRequestProxyV1 extends AbstractLocalHistoryRequestP
     }
 
     @Override
-    protected PurgeLocalHistoryRequest createRequest(final LocalHistoryIdentifier target, final ActorRef replyTo) {
-        return new PurgeLocalHistoryRequest(target, replyTo);
+    protected PurgeLocalHistoryRequest createRequest(final LocalHistoryIdentifier target, final long sequence,
+            final ActorRef replyTo) {
+        return new PurgeLocalHistoryRequest(target, sequence, replyTo);
     }
 }