X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FAsyncWriteTransaction.java;h=725e364525a5acaf5681fe955569ffde5b3ba134;hb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;hp=70789ccb1481c36e8179999d341a0bdddecd47b8;hpb=b4bf55727093657662d8c16a50fa85f87978a586;p=controller.git diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncWriteTransaction.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncWriteTransaction.java index 70789ccb14..725e364525 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncWriteTransaction.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncWriteTransaction.java @@ -101,6 +101,7 @@ import org.opendaylight.yangtools.util.concurrent.ExceptionMapper; * @param * Type of data (payload), which represents data payload */ +@Deprecated(forRemoval = true) public interface AsyncWriteTransaction

, D> extends AsyncTransaction { /** * Cancels the transaction. @@ -116,8 +117,8 @@ public interface AsyncWriteTransaction

, D> extends AsyncTransa * Invoking cancel() on a finished transaction (future returned by {@link #submit()} already completed will always * fail (return false). * - * @return false if the task could not be cancelled, typically because it has already completed normally - * true otherwise + * @return {@code false} if the task could not be cancelled, typically because it has already completed normally + * {@code true} otherwise * */ boolean cancel(); @@ -228,7 +229,8 @@ public interface AsyncWriteTransaction

, D> extends AsyncTransa * which are based on same initial state, Tx 1 completes successfully * before Tx 2 is submitted. * - * + *
+ * * * * @@ -253,7 +255,8 @@ public interface AsyncWriteTransaction

, D> extends AsyncTransa * which are based on same initial state, Tx 1 completes successfully * before Tx 2 is submitted. * - *

Data store state changes
Initial stateTx 1Tx 2Result
Emptyput(A,1)put(A,2)Tx 2 will fail, state is A=1
Emptyput(A,1)merge(A,2)A=2
+ *
+ * * * *
Data store state changes
Initial stateTx 1Tx 2Result
Emptyput(TOP,[])put(TOP,[])Tx 2 will fail, state is TOP=[]