@Immutable public final class TransactionOptions extends java.lang.Object
ClientSession
,
ClientSessionOptions
Modifier and Type | Class and Description |
---|---|
static class |
TransactionOptions.Builder
The builder for transaction options
|
Modifier and Type | Method and Description |
---|---|
static TransactionOptions.Builder |
builder()
Gets an instance of a builder
|
boolean |
equals(java.lang.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.
|
java.lang.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 optionspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved