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