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.Serial;
11 import org.opendaylight.controller.cluster.access.ABIVersion;
12 import org.opendaylight.controller.cluster.access.concepts.RequestSuccess;
13 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
16 * Abstract base class for {@link RequestSuccess}es involving specific transaction. This class is visible outside of
17 * this package solely for the ability to perform a unified instanceof check.
19 * @param <T> Message type
21 public abstract class TransactionSuccess<T extends TransactionSuccess<T>>
22 extends RequestSuccess<TransactionIdentifier, T> {
24 private static final long serialVersionUID = 1L;
26 TransactionSuccess(final TransactionIdentifier identifier, final long sequence) {
27 super(identifier, sequence);
30 TransactionSuccess(final T success, final ABIVersion version) {
31 super(success, version);
35 protected abstract AbstractTransactionSuccessProxy<T> externalizableProxy(ABIVersion version);