Class TransactionOptions

java.lang.Object
com.google.cloud.firestore.TransactionOptions

public final class TransactionOptions extends Object
Options specifying the behavior of Firestore Transactions.

A transaction in Firestore can be either read-write or read-only.

The default set of options is a read-write transaction with a maximum number of 5 attempts. This attempt count can be customized via the TransactionOptions.ReadWriteOptionsBuilder.setNumberOfAttempts(int) method. A new instance of a builder can be created by calling createReadWriteOptionsBuilder().

A read-only transaction can be configured via the TransactionOptions.ReadOnlyOptionsBuilder class. A new instance can be created by calling createReadOnlyOptionsBuilder().

See Also: