3cf513ae3ca5af95970736be8b9a04dc07d55517
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / TransactionAbortSuccessProxyV1.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 TransactionAbortSuccess}. It implements the initial (Boron)
14  * serialization format.
15  *
16  * @author Robert Varga
17  */
18 final class TransactionAbortSuccessProxyV1 extends AbstractTransactionSuccessProxy<TransactionAbortSuccess> {
19     private static final long serialVersionUID = 1L;
20
21     public TransactionAbortSuccessProxyV1() {
22         // For Externalizable
23     }
24
25     TransactionAbortSuccessProxyV1(final TransactionAbortSuccess success) {
26         super(success);
27     }
28
29     @Override
30     protected TransactionAbortSuccess createSuccess(final TransactionIdentifier target, final long sequence) {
31         return new TransactionAbortSuccess(target, sequence);
32     }
33 }