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.IOException;
11 import java.io.ObjectInput;
12 import java.io.ObjectOutput;
13 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
16 * Externalizable proxy for use with {@link TransactionCanCommitSuccess}. It implements the initial (Boron)
17 * serialization format.
19 * @author Robert Varga
21 final class TransactionCanCommitSuccessProxyV1 extends AbstractTransactionSuccessProxy<TransactionCanCommitSuccess> {
22 private static final long serialVersionUID = 1L;
24 public TransactionCanCommitSuccessProxyV1() {
28 TransactionCanCommitSuccessProxyV1(final TransactionCanCommitSuccess success) {
33 public void writeExternal(final ObjectOutput out) throws IOException {
34 super.writeExternal(out);
38 public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
39 super.readExternal(in);
43 protected TransactionCanCommitSuccess createSuccess(final TransactionIdentifier target) {
44 return new TransactionCanCommitSuccess(target);