Class CommitLocalTransactionRequest

All Implemented Interfaces:
Serializable, Immutable

public final class CommitLocalTransactionRequest extends AbstractLocalTransactionRequest<CommitLocalTransactionRequest>
Request to commit a local transaction. Since local transactions do not introduce state on the backend until they are ready, this message carries a complete set of modifications.
See Also:
  • Constructor Details

  • Method Details

    • getDelayedFailure

      public Optional<Exception> getDelayedFailure()
      Return the delayed error detected on the frontend. If this error is present, it will be reported as the result of the first step of the commit process.
      Returns:
      Delayed failure, if present.
    • getModification

      public DataTreeModification getModification()
    • isCoordinated

      public boolean isCoordinated()
      Indicate if this is a coordinated, multi-backend request. If this method returns true, the backend must act as a cohort participating in the three-phase commit (3PC) protocol to commit this transaction. If this method returns false, the backend should proceed to commit the transaction and respond once the commit completes or fails to complete.
      Returns:
      Indication of coordinated commit.
    • addToStringAttributes

      protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
      Description copied from class: Message
      Add attributes to the output of Message.toString(). Subclasses wanting to contribute additional information should override this method. Any null attributes will be omitted from the output.
      Overrides:
      addToStringAttributes in class Request<TransactionIdentifier,CommitLocalTransactionRequest>
      Parameters:
      toStringHelper - a MoreObjects.ToStringHelper instance
      Returns:
      The MoreObjects.ToStringHelper passed in as argument