Class CommitResponse

java.lang.Object
com.google.cloud.spanner.CommitResponse

public class CommitResponse extends Object
Represents a response from a commit operation.
  • Constructor Details

    • CommitResponse

      public CommitResponse(com.google.cloud.Timestamp commitTimestamp)
  • Method Details

    • getCommitTimestamp

      public com.google.cloud.Timestamp getCommitTimestamp()
      Returns a Timestamp representing the commit time of the transaction.
    • hasCommitStats

      public boolean hasCommitStats()
      Returns:
      true if the CommitResponse includes CommitStats
    • getCommitStats

      public CommitStats getCommitStats()
      Commit statistics are returned by a read/write transaction if specifically requested by passing in Options.commitStats() to the transaction.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object