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.com.google.cloud.TimestampReturns aTimestamprepresenting the timestamp at which all reads in the transaction ran at, if the transaction ran at repeatable read isolation in internal test environments, and otherwise returns null.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. -
getSnapshotTimestamp
Returns aTimestamprepresenting the timestamp at which all reads in the transaction ran at, if the transaction ran at repeatable read isolation in internal test environments, and otherwise returns null. -
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()
-