Add SnapshotBackedTransaction 18/71418/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 26 Apr 2018 10:20:10 +0000 (12:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 26 Apr 2018 12:28:18 +0000 (14:28 +0200)
commit87739e6c8f7edfaf977eb9cea86bac32cf016423
tree4b728674f09209e13bf08262a4ad9f3e9f00fa4b
parentd74efc9a282c694a988bafe5f1305bf8494444a1
Add SnapshotBackedTransaction

DOMStore implementations working on SnapshotBacked transactions can
provide additional functionality if they have access to the underlying
snapshot.

Expose a method which allows the snapshot to be acquired as long as
the transaction is open.

Change-Id: I408e31be0285fb41732f29206bccd71ce794215e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/SnapshotBackedReadTransaction.java
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/SnapshotBackedReadWriteTransaction.java
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/SnapshotBackedTransaction.java [new file with mode: 0644]
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/SnapshotBackedWriteTransaction.java