Package com.google.cloud.spanner
Class CommitResponse
java.lang.Object
com.google.cloud.spanner.CommitResponse
Represents a response from a commit operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()
to the transaction.com.google.cloud.Timestamp
Returns aTimestamp
representing the commit time of the transaction.boolean
int
hashCode()
-
Constructor Details
-
CommitResponse
public CommitResponse(com.google.cloud.Timestamp commitTimestamp)
-
-
Method Details
-
getCommitTimestamp
public com.google.cloud.Timestamp getCommitTimestamp()Returns aTimestamp
representing the commit time of the transaction. -
hasCommitStats
public boolean hasCommitStats()- Returns:
- true if the
CommitResponse
includesCommitStats
-
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()
-