Class ForeignShardThreePhaseCommitCohort

    • Method Detail

      • canCommit

        public ListenableFuture<Boolean> canCommit()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DOMStoreThreePhaseCommitCohort
        Sends transaction associated with this three phase commit instance to the participant, participant votes on the transaction, if the transaction should be committed or aborted.
        Specified by:
        canCommit in interface DOMStoreThreePhaseCommitCohort
        Returns:
        ListenableFuture with vote of the participant. Vote Future.get() is following:
        • true if transaction is approved by data store.
        • false if the transaction is not approved by data store and should be aborted.
      • abort

        public ListenableFuture<Void> abort()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DOMStoreThreePhaseCommitCohort
        Initiates a abort phase of associated transaction on data store.
        Specified by:
        abort in interface DOMStoreThreePhaseCommitCohort
        Returns:
        ListenableFuture representing acknowledgment for participant that abort message was received.
      • commit

        public ListenableFuture<Void> commit()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DOMStoreThreePhaseCommitCohort
        Initiates a commit phase on of associated transaction on data store.
        Specified by:
        commit in interface DOMStoreThreePhaseCommitCohort
        Returns:
        ListenableFuture representing acknowledgment for participant that commit message was received and commit of transaction was processed.