Cloud Spanner V1 Client - Class MultiplexedSessionPrecommitToken (1.91.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class MultiplexedSessionPrecommitToken.

When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.

Generated from protobuf message google.spanner.v1.MultiplexedSessionPrecommitToken

Namespace

Google \ Cloud \ Spanner \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ precommit_token string

Opaque precommit token.

↳ seq_num int

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

getPrecommitToken

Opaque precommit token.

Returns
Type Description
string

setPrecommitToken

Opaque precommit token.

Parameter
Name Description
var string
Returns
Type Description
$this

getSeqNum

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

Returns
Type Description
int

setSeqNum

An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

Parameter
Name Description
var int
Returns
Type Description
$this