Convert ProxyDOMDataBroker tx creation to async
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / impl / tx / ProxyReadTransaction.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.netconf.topology.singleton.impl.tx;
10
11 import akka.actor.ActorRef;
12 import akka.util.Timeout;
13 import org.opendaylight.controller.md.sal.dom.api.DOMDataReadOnlyTransaction;
14 import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId;
15 import scala.concurrent.ExecutionContext;
16 import scala.concurrent.Future;
17
18 /**
19  * ProxyReadTransaction uses provided {@link ActorRef} to delegate method calls to master
20  * {@link org.opendaylight.netconf.topology.singleton.impl.actors.ReadTransactionActor}.
21  */
22 public class ProxyReadTransaction extends ProxyReadWriteTransaction implements DOMDataReadOnlyTransaction {
23
24     public ProxyReadTransaction(final RemoteDeviceId id, final Future<Object> masterTxActorFuture,
25             final ExecutionContext executionContext, final Timeout askTimeout) {
26         super(id, masterTxActorFuture, executionContext, askTimeout);
27     }
28
29     @Override
30     public void close() {
31         // noop
32     }
33 }