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 akka.actor.ActorRef;
11 import java.io.Serial;
12 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16 * Externalizable proxy for use with {@link ReadTransactionRequest}. It implements the initial (Boron) serialization
19 * @author Robert Varga
21 final class ReadTransactionRequestProxyV1 extends AbstractReadPathTransactionRequestProxyV1<ReadTransactionRequest> {
23 private static final long serialVersionUID = 1L;
25 // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
26 // be able to create instances via reflection.
27 @SuppressWarnings("checkstyle:RedundantModifier")
28 public ReadTransactionRequestProxyV1() {
32 ReadTransactionRequestProxyV1(final ReadTransactionRequest request) {
37 ReadTransactionRequest createReadPathRequest(final TransactionIdentifier target, final long sequence,
38 final ActorRef replyTo, final YangInstanceIdentifier path, final boolean snapshotOnly) {
39 return new ReadTransactionRequest(target, sequence, replyTo, path, snapshotOnly);