X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fspi%2Fdata%2FDOMStoreThreePhaseCommitCohort.java;h=db2afd0b06039c8b2e8aa39bbdd41e3443f53d6a;hb=refs%2Fchanges%2F04%2F69104%2F2;hp=986a153efb2e45b481f66729e8c362deced8a1c9;hpb=88f3fac27f5dbc4043cdeadacaca34bd6f57c854;p=controller.git 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..db2afd0b06 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,7 +13,7 @@ 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. */ public interface DOMStoreThreePhaseCommitCohort { @@ -29,12 +29,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. *