Expose CursorAwareDataTreeSnapshot from local RW proxy 54/100654/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Apr 2022 19:00:44 +0000 (21:00 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Apr 2022 19:00:44 +0000 (21:00 +0200)
We can improve type safety a bit by exposing the fact the backing
snapshot supports cursors.

Change-Id: If65549d6a28851c0abd1c8b826e48503ef12860c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java

index 1156585..4d6a644 100644 (file)
@@ -220,7 +220,7 @@ final class LocalReadWriteProxyTransaction extends LocalProxyTransaction {
         return Optional.of(b.build());
     }
 
-    DataTreeSnapshot getSnapshot() {
+    CursorAwareDataTreeSnapshot getSnapshot() {
         Preconditions.checkState(sealedModification != null, "Proxy %s is not sealed yet", getIdentifier());
         return sealedModification;
     }