X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fspi%2Fdata%2FDOMStoreThreePhaseCommitCohort.java;h=145a7090d90c45de45b2a000a2dab27881b1fd88;hp=986a153efb2e45b481f66729e8c362deced8a1c9;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=88f3fac27f5dbc4043cdeadacaca34bd6f57c854 diff --git a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreThreePhaseCommitCohort.java index 986a153efb..145a7090d9 100644 --- a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/DOMStoreThreePhaseCommitCohort.java @@ -13,8 +13,11 @@ import com.google.common.util.concurrent.ListenableFuture; * Interface implemented by the {@link DOMStore} and exposed for each {@link DOMStoreWriteTransaction} * upon its transition to Ready state. The frontend (DOMStore user) uses this interface to drive the * commit procedure across potentially multiple DOMStores using the Three-Phase-Commit (3PC) Protocol, - * as described in {@link https://en.wikipedia.org/wiki/Three-phase_commit}. + * as described in Three-Phase-Commit Protocol. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.store.DOMStoreThreePhaseCommitCohort} instead. */ +@Deprecated public interface DOMStoreThreePhaseCommitCohort { /** @@ -29,12 +32,14 @@ public interface DOMStoreThreePhaseCommitCohort { * true if transaction is approved by data store. *
  • false if the transaction is not approved by data store and * should be aborted. + * */ ListenableFuture canCommit(); /** * Initiates a pre-commit phase of associated transaction on datastore. * + *

    * This message is valid only and only if and only if the participant responded * on {@link #canCommit()} call with positive response. *