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.ObjectInput;
11 import org.opendaylight.controller.cluster.access.ABIVersion;
12 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
15 * Successful reply to a {@link SkipTransactionsRequest}.
17 // FIXME: rename to SkipTransactionsSuccess
18 public final class SkipTransactionsResponse extends TransactionSuccess<SkipTransactionsResponse> {
19 interface SerialForm extends TransactionSuccess.SerialForm<SkipTransactionsResponse> {
21 default SkipTransactionsResponse readExternal(final ObjectInput in, final TransactionIdentifier target,
22 final long sequence) {
23 return new SkipTransactionsResponse(target, sequence);
28 private static final long serialVersionUID = 1L;
30 private SkipTransactionsResponse(final SkipTransactionsResponse success, final ABIVersion version) {
31 super(success, version);
34 public SkipTransactionsResponse(final TransactionIdentifier identifier, final long sequence) {
35 super(identifier, sequence);
39 protected SerialForm externalizableProxy(final ABIVersion version) {
40 return ABIVersion.MAGNESIUM.lt(version) ? new STS(this) : new SkipTransactionsResponseProxyV1(this);
44 protected SkipTransactionsResponse cloneAsVersion(final ABIVersion version) {
45 return new SkipTransactionsResponse(this, version);