public static final class TransactionOptions.ReadWriteOptionsBuilder extends TransactionOptions.Builder<TransactionOptions.ReadWriteOptionsBuilder>
executor
Modifier and Type | Method and Description |
---|---|
TransactionOptions |
build() |
int |
getNumberOfAttempts()
Specify the max number of attempts a transaction will be attempted before resulting in an
error.
|
TransactionOptions.ReadWriteOptionsBuilder |
setNumberOfAttempts(int numberOfAttempts)
Specify the max number of attempts a transaction will be attempted before resulting in an
error.
|
getExecutor, setExecutor
public int getNumberOfAttempts()
@Nonnull public TransactionOptions.ReadWriteOptionsBuilder setNumberOfAttempts(int numberOfAttempts)
numberOfAttempts
- The max number of attempts to try and commit the transaction.this
builderIllegalArgumentException
- if numberOfAttempts is less than or equal to 0@Nonnull public TransactionOptions build()
build
in class TransactionOptions.Builder<TransactionOptions.ReadWriteOptionsBuilder>
TransactionOptions
from the values passed to this builderCopyright © 2023 Google LLC. All rights reserved.