2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.access.commands;
10 import java.io.DataInput;
11 import java.io.IOException;
12 import java.io.Serial;
13 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxy;
14 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
17 * Abstract base class for serialization proxies associated with {@link LocalHistoryRequest}s.
19 * @author Robert Varga
21 * @param <T> Message type
23 abstract class AbstractLocalHistoryRequestProxy<T extends LocalHistoryRequest<T>>
24 extends AbstractRequestProxy<LocalHistoryIdentifier, T> {
26 private static final long serialVersionUID = 1L;
28 protected AbstractLocalHistoryRequestProxy() {
32 AbstractLocalHistoryRequestProxy(final T request) {
37 protected final LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
38 return LocalHistoryIdentifier.readFrom(in);