Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken (v1.2.0)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#precommit_token

def precommit_token() -> ::String
Returns
  • (::String) — Opaque precommit token.

#precommit_token=

def precommit_token=(value) -> ::String
Parameter
  • value (::String) — Opaque precommit token.
Returns
  • (::String) — Opaque precommit token.

#seq_num

def seq_num() -> ::Integer
Returns
  • (::Integer) — 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.

#seq_num=

def seq_num=(value) -> ::Integer
Parameter
  • value (::Integer) — 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
  • (::Integer) — 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.