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 org.opendaylight.controller.cluster.access.concepts.AbstractSuccessProxy;
13 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
16 * Serialization proxy associated with {@link LocalHistorySuccess}.
18 * @author Robert Varga
20 final class LocalHistorySuccessProxyV1 extends AbstractSuccessProxy<LocalHistoryIdentifier, LocalHistorySuccess> {
21 private static final long serialVersionUID = 1L;
23 // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
24 // be able to create instances via reflection.
25 @SuppressWarnings("checkstyle:RedundantModifier")
26 public LocalHistorySuccessProxyV1() {
30 LocalHistorySuccessProxyV1(final LocalHistorySuccess success) {
35 protected LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
36 return LocalHistoryIdentifier.readFrom(in);
40 protected LocalHistorySuccess createSuccess(final LocalHistoryIdentifier target, final long sequence) {
41 return new LocalHistorySuccess(target, sequence);