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.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.controller.cluster.access.ABIVersion;
14 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
18 * A transaction request to read a particular path exists in the current view of a particular transaction.
20 public final class ReadTransactionRequest extends AbstractReadPathTransactionRequest<ReadTransactionRequest> {
22 private static final long serialVersionUID = 1L;
24 public ReadTransactionRequest(final @NonNull TransactionIdentifier identifier, final long sequence,
25 final @NonNull ActorRef replyTo, final @NonNull YangInstanceIdentifier path, final boolean snapshotOnly) {
26 super(identifier, sequence, replyTo, path, snapshotOnly);
29 private ReadTransactionRequest(final ReadTransactionRequest request, final ABIVersion version) {
30 super(request, version);
34 protected ReadTransactionRequest cloneAsVersion(final ABIVersion version) {
35 return new ReadTransactionRequest(this, version);
39 protected ReadTransactionRequestProxyV1 externalizableProxy(final ABIVersion version) {
40 return new ReadTransactionRequestProxyV1(this);