a438a8b4a49706bd755497c9fb667c8f9ba8a323
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / ReadTransactionRequestProxyV1.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 akka.actor.ActorRef;
11 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13
14 /**
15  * Externalizable proxy for use with {@link ReadTransactionRequest}. It implements the initial (Boron) serialization
16  * format.
17  *
18  * @author Robert Varga
19  */
20 final class ReadTransactionRequestProxyV1 extends AbstractReadTransactionRequestProxyV1<ReadTransactionRequest> {
21     private static final long serialVersionUID = 1L;
22
23     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
24     // be able to create instances via reflection.
25     @SuppressWarnings("checkstyle:RedundantModifier")
26     public ReadTransactionRequestProxyV1() {
27         // For Externalizable
28     }
29
30     ReadTransactionRequestProxyV1(final ReadTransactionRequest request) {
31         super(request);
32     }
33
34     @Override
35     ReadTransactionRequest createReadRequest(final TransactionIdentifier target, final long sequence,
36             final ActorRef replyTo, final YangInstanceIdentifier path) {
37         return new ReadTransactionRequest(target, sequence, replyTo, path);
38     }
39 }