BUG-5280: implement transaction dispatch
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / TransactionPreCommitSuccessProxyV1.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
11
12 /**
13  * Externalizable proxy for use with {@link TransactionPreCommitSuccess}. It implements the initial (Boron)
14  * serialization format.
15  *
16  * @author Robert Varga
17  */
18 final class TransactionPreCommitSuccessProxyV1 extends AbstractTransactionSuccessProxy<TransactionPreCommitSuccess> {
19     private static final long serialVersionUID = 1L;
20
21     public TransactionPreCommitSuccessProxyV1() {
22         // For Externalizable
23     }
24
25     TransactionPreCommitSuccessProxyV1(final TransactionPreCommitSuccess success) {
26         super(success);
27     }
28
29     @Override
30     protected TransactionPreCommitSuccess createSuccess(final TransactionIdentifier target) {
31         return new TransactionPreCommitSuccess(target);
32     }
33 }