2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.Serial;
11 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
14 * Externalizable proxy for use with {@link SkipTransactionsResponse}. It implements the initial (Phosphorus SR1)
15 * serialization format.
17 final class SkipTransactionsResponseProxyV1 extends AbstractTransactionSuccessProxy<SkipTransactionsResponse> {
19 private static final long serialVersionUID = 1L;
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() {
28 SkipTransactionsResponseProxyV1(final SkipTransactionsResponse success) {
33 protected SkipTransactionsResponse createSuccess(final TransactionIdentifier target, final long sequence) {
34 return new SkipTransactionsResponse(target, sequence);