Package | Description |
---|---|
com.google.cloud.firestore |
Modifier and Type | Method and Description |
---|---|
static TransactionOptions |
TransactionOptions.create()
Create a default set of options suitable for most use cases.
|
static TransactionOptions |
TransactionOptions.create(Executor executor)
Create a default set of options with a custom executor.
|
static TransactionOptions |
TransactionOptions.create(Executor executor,
int numberOfAttempts)
Create a default set of options with a custom executor and a custom number of retry attempts.
|
static TransactionOptions |
TransactionOptions.create(int numberOfAttempts)
Create a default set of options with a custom number of retry attempts.
|
Modifier and Type | Method and Description |
---|---|
<T> 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 © 2019 Google LLC. All rights reserved.