Uses of Interface
com.google.cloud.spanner.Options.TransactionOption
Packages that use Options.TransactionOption
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of Options.TransactionOption in com.google.cloud.spanner
Subinterfaces of Options.TransactionOption in com.google.cloud.spannerModifier and TypeInterfaceDescriptionstatic interfaceMarker interface to mark options applicable to Read, Query, Update and Write operationsstatic interfaceMarker interface to mark options applicable to Update and Write operationsMethods in com.google.cloud.spanner that return Options.TransactionOptionModifier and TypeMethodDescriptionstatic Options.TransactionOptionOptions.commitStats()Specifying this instructs the transaction to requestCommitStatsfrom the backend.static Options.TransactionOptionOptions.maxCommitDelay(Duration maxCommitDelay) static Options.TransactionOptionOptions.optimisticLock()Specifying this instructs the transaction to request Optimistic Lock from the backend.Methods in com.google.cloud.spanner with parameters of type Options.TransactionOptionModifier and TypeMethodDescriptioncom.google.api.gax.rpc.ServerStream<BatchWriteResponse>DatabaseClient.batchWriteAtLeastOnce(Iterable<MutationGroup> mutationGroups, Options.TransactionOption... options) Applies batch of mutation groups in a collection of efficient transactions.DatabaseClient.readWriteTransaction(Options.TransactionOption... options) Returns a transaction runner for executing a single logical transaction with retries.DatabaseClient.runAsync(Options.TransactionOption... options) Returns an asynchronous transaction runner for executing a single logical transaction with retries.DatabaseClient.transactionManager(Options.TransactionOption... options) Returns a transaction manager which allows manual management of transaction lifecycle.DatabaseClient.transactionManagerAsync(Options.TransactionOption... options) Returns an asynchronous transaction manager which allows manual management of transaction lifecycle.DatabaseClient.writeAtLeastOnceWithOptions(Iterable<Mutation> mutations, Options.TransactionOption... options) Writes the given mutations atomically to the database without replay protection.DatabaseClient.writeWithOptions(Iterable<Mutation> mutations, Options.TransactionOption... options) Writes the given mutations atomically to the database with the given options.