f044936b7a2d4b8f8881dc929d8e98d498ab635a
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / LocalHistoryFailureProxyV1.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestFailureProxy;
11 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
12
13 /**
14  * Externalizable proxy for use with {@link LocalHistoryFailure}. It implements the initial (Boron) serialization
15  * format.
16  *
17  * @author Robert Varga
18  */
19 final class LocalHistoryFailureProxyV1
20         extends AbstractRequestFailureProxy<LocalHistoryIdentifier, LocalHistoryFailure>
21         implements LocalHistoryFailure.SerialForm {
22     @java.io.Serial
23     private static final long serialVersionUID = 1L;
24
25     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
26     // be able to create instances via reflection.
27     @SuppressWarnings("checkstyle:RedundantModifier")
28     public LocalHistoryFailureProxyV1() {
29         // For Externalizable
30     }
31
32     LocalHistoryFailureProxyV1(final LocalHistoryFailure failure) {
33         super(failure);
34     }
35 }