@Immutable public final class TransactionOptions extends Object
ClientSession
,
ClientSessionOptions
Modifier and Type | Class | Description |
---|---|---|
static class |
TransactionOptions.Builder |
The builder for transaction options
|
Modifier and Type | Method | Description |
---|---|---|
static TransactionOptions.Builder |
builderβ() |
Gets an instance of a builder
|
boolean |
equalsβ(Object o) |
|
ReadConcern |
getReadConcernβ() |
Gets the read concern.
|
ReadPreference |
getReadPreferenceβ() |
Gets the read preference.
|
WriteConcern |
getWriteConcernβ() |
Gets the write concern.
|
int |
hashCodeβ() |
|
static TransactionOptions |
mergeβ(TransactionOptions options,
TransactionOptions defaultOptions) |
Merge the two provided transaction options, with the first taking precedence over the second.
|
String |
toStringβ() |
@Nullable public ReadConcern getReadConcernβ()
@Nullable public WriteConcern getWriteConcernβ()
@Nullable public ReadPreference getReadPreferenceβ()
public static TransactionOptions.Builder builderβ()
public static TransactionOptions mergeβ(TransactionOptions options, TransactionOptions defaultOptions)
options
- the transaction options, which take precedence for any property that is non-nulldefaultOptions
- the default transaction options