More cds-access-api cleanup
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / SkipTransactionsResponseProxyV1.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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 java.io.Serial;
11 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
12
13 /**
14  * Externalizable proxy for use with {@link SkipTransactionsResponse}. It implements the initial (Phosphorus SR1)
15  * serialization format.
16  */
17 final class SkipTransactionsResponseProxyV1 extends AbstractTransactionSuccessProxy<SkipTransactionsResponse> {
18     @Serial
19     private static final long serialVersionUID = 1L;
20
21     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
22     // be able to create instances via reflection.
23     @SuppressWarnings("checkstyle:RedundantModifier")
24     public SkipTransactionsResponseProxyV1() {
25         // For Externalizable
26     }
27
28     SkipTransactionsResponseProxyV1(final SkipTransactionsResponse success) {
29         super(success);
30     }
31
32     @Override
33     protected SkipTransactionsResponse createSuccess(final TransactionIdentifier target, final long sequence) {
34         return new SkipTransactionsResponse(target, sequence);
35     }
36 }