Fix followerDistributedDataStore tear down
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / AbstractTransactionSuccessProxy.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 java.io.DataInput;
11 import java.io.IOException;
12 import org.opendaylight.controller.cluster.access.concepts.AbstractSuccessProxy;
13 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
14
15 /**
16  * Abstract base class for serialization proxies associated with {@link TransactionSuccess}es.
17  *
18  * @author Robert Varga
19  *
20  * @param <T> Message type
21  */
22 abstract class AbstractTransactionSuccessProxy<T extends TransactionSuccess<T>>
23         extends AbstractSuccessProxy<TransactionIdentifier, T> {
24     private static final long serialVersionUID = 1L;
25
26     protected AbstractTransactionSuccessProxy() {
27         // For Externalizable
28     }
29
30     AbstractTransactionSuccessProxy(final T request) {
31         super(request);
32     }
33
34     @Override
35     protected final TransactionIdentifier readTarget(final DataInput in) throws IOException {
36         return TransactionIdentifier.readFrom(in);
37     }
38 }