Package com.google.cloud.spanner
Class CommitResponse
java.lang.Object
com.google.cloud.spanner.CommitResponse
Represents a response from a commit operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCommit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()to the transaction.com.google.cloud.TimestampReturns aTimestamprepresenting the commit time of the transaction.booleaninthashCode()
-
Constructor Details
-
CommitResponse
public CommitResponse(com.google.cloud.Timestamp commitTimestamp)
-
-
Method Details
-
getCommitTimestamp
public com.google.cloud.Timestamp getCommitTimestamp()Returns aTimestamprepresenting the commit time of the transaction. -
hasCommitStats
public boolean hasCommitStats()- Returns:
- true if the
CommitResponseincludesCommitStats
-
getCommitStats
Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()to the transaction. -
equals
-
hashCode
public int hashCode()
-