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 com.google.common.annotations.Beta;
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 * @author Robert Varga
21 * @param <T> Message type
24 public abstract class TransactionSuccess<T extends TransactionSuccess<T>> extends RequestSuccess<TransactionIdentifier, T> {
25 private static final long serialVersionUID = 1L;
27 TransactionSuccess(final TransactionIdentifier identifier, final long sequence) {
28 super(identifier, sequence);
32 protected abstract AbstractTransactionSuccessProxy<T> externalizableProxy(ABIVersion version);