Add new cds-access-api proxies
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / AbstractLocalHistoryRequestProxy.java
index 0fbeecc02336fbc19bbb514c9404869261de6aca..1bd37fb83c18b8cb5cf7f89ef4ce076c252140ed 100644 (file)
@@ -7,8 +7,6 @@
  */
 package org.opendaylight.controller.cluster.access.commands;
 
-import java.io.DataInput;
-import java.io.IOException;
 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxy;
 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
 
@@ -19,19 +17,16 @@ import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifie
  *
  * @param <T> Message type
  */
-abstract class AbstractLocalHistoryRequestProxy<T extends LocalHistoryRequest<T>> extends AbstractRequestProxy<LocalHistoryIdentifier, T> {
+abstract class AbstractLocalHistoryRequestProxy<T extends LocalHistoryRequest<T>>
+        extends AbstractRequestProxy<LocalHistoryIdentifier, T> implements LocalHistoryRequest.SerialForm<T> {
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
 
-    AbstractLocalHistoryRequestProxy() {
+    protected AbstractLocalHistoryRequestProxy() {
         // For Externalizable
     }
 
     AbstractLocalHistoryRequestProxy(final T request) {
         super(request);
     }
-
-    @Override
-    protected final LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
-        return LocalHistoryIdentifier.readFrom(in);
-    }
 }