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 boolean
equals(Object o)
CommitStats
getCommitStats()
Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()
to the transaction.com.google.cloud.Timestamp
getCommitTimestamp()
Returns aTimestamp
representing the commit time of the transaction.boolean
hasCommitStats()
int
hashCode()
-
-
-
Method Detail
-
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
public CommitStats getCommitStats()
Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()
to the transaction.
-
-