Package | Description |
---|---|
com.google.cloud.firestore |
Modifier and Type | Method and Description |
---|---|
abstract TransactionOptions |
TransactionOptions.Builder.build() |
TransactionOptions |
TransactionOptions.ReadOnlyOptionsBuilder.build() |
TransactionOptions |
TransactionOptions.ReadWriteOptionsBuilder.build() |
static TransactionOptions |
TransactionOptions.create()
Create a default set of options suitable for most use cases.
|
static TransactionOptions |
TransactionOptions.create(Executor executor)
Deprecated.
as of 2.0.0, replaced by
TransactionOptions.Builder.setExecutor(Executor) |
static TransactionOptions |
TransactionOptions.create(Executor executor,
int numberOfAttempts)
Deprecated.
as of 2.0.0, replaced by
TransactionOptions.Builder.setExecutor(Executor) and
TransactionOptions.ReadWriteOptionsBuilder.setNumberOfAttempts(int) |
static TransactionOptions |
TransactionOptions.create(int numberOfAttempts)
Deprecated.
as of 2.0.0, replaced by
TransactionOptions.ReadWriteOptionsBuilder.setNumberOfAttempts(int) |
Modifier and Type | Method and Description |
---|---|
<T> com.google.api.core.ApiFuture<T> |
Firestore.runAsyncTransaction(Transaction.AsyncFunction<T> updateFunction,
TransactionOptions transactionOptions)
Executes the given updateFunction and then attempts to commit the changes applied within the
transaction.
|
<T> com.google.api.core.ApiFuture<T> |
Firestore.runTransaction(Transaction.Function<T> updateFunction,
TransactionOptions transactionOptions)
Executes the given updateFunction and then attempts to commit the changes applied within the
transaction.
|
Copyright © 2023 Google LLC. All rights reserved.