Package com.google.cloud.spanner
Class CommitResponse
- java.lang.Object
-
- com.google.cloud.spanner.CommitResponse
-
public class CommitResponse extends Object
Represents a response from a commit operation.
-
-
Constructor Summary
Constructors Constructor Description CommitResponse(com.google.cloud.Timestamp commitTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CommitStatsgetCommitStats()Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()to the transaction.com.google.cloud.TimestampgetCommitTimestamp()Returns aTimestamprepresenting the commit time of the transaction.booleanhasCommitStats()inthashCode()
-
-
-
Method Detail
-
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
public CommitStats getCommitStats()
Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()to the transaction.
-
-