Bump mdsal to 4.0.0
[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 package org.opendaylight.netconf.topology.singleton.impl.tx;
9
10 import akka.actor.ActorRef;
11 import akka.util.Timeout;
12 import org.opendaylight.mdsal.dom.api.DOMDataTreeReadTransaction;
13 import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId;
14 import scala.concurrent.ExecutionContext;
15 import scala.concurrent.Future;
16
17 /**
18  * ProxyReadTransaction uses provided {@link ActorRef} to delegate method calls to master
19  * {@link org.opendaylight.netconf.topology.singleton.impl.actors.ReadTransactionActor}.
20  */
21 public class ProxyReadTransaction extends ProxyReadWriteTransaction implements DOMDataTreeReadTransaction {
22
23     public ProxyReadTransaction(final RemoteDeviceId id, final Future<Object> masterTxActorFuture,
24             final ExecutionContext executionContext, final Timeout askTimeout) {
25         super(id, masterTxActorFuture, executionContext, askTimeout);
26     }
27
28     @Override
29     public void close() {
30         cancel();
31     }
32 }