Class CommitResponse (6.25.0)

public class CommitResponse

Represents a response from a commit operation.

Inheritance

Object > CommitResponse

Constructors

CommitResponse(Timestamp commitTimestamp)

public CommitResponse(Timestamp commitTimestamp)
Parameter
NameDescription
commitTimestampcom.google.cloud.Timestamp

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getCommitStats()

public CommitStats getCommitStats()

Commit statistics are returned by a read/write transaction if specifically requested by passing in Options#commitStats() to the transaction.

Returns
TypeDescription
CommitStats

getCommitTimestamp()

public Timestamp getCommitTimestamp()

Returns a Timestamp representing the commit time of the transaction.

Returns
TypeDescription
com.google.cloud.Timestamp

hasCommitStats()

public boolean hasCommitStats()
Returns
TypeDescription
boolean

true if the CommitResponse includes CommitStats

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides