TransactionOptions (driver-core 5.4.0 API) (original) (raw)


Options to apply to transactions. The default values for the options depend on context. For options specified per-transaction, the default values come from the default transaction options. For the default transaction options themselves, the default values come from the MongoClient on which the session was started.

Since:

3.8

See Also:

Since server release

4.0

Nested Classes
static final class
The builder for transaction options

[builder](#builder%28%29)()
Gets an instance of a builder
boolean
Gets the maximum amount of time to allow a single commitTransaction command to execute.
Gets the read preference.
The time limit for the full execution of the transaction.
int
[hashCode](#hashCode%28%29)()
Merge the two provided transaction options, with the first taking precedence over the second.
[toString](#toString%28%29)()