Package com.mongodb
Class ReadPreferenceHedgeOptions.Builder
java.lang.Object
com.mongodb.ReadPreferenceHedgeOptions.Builder
- Enclosing class:
- ReadPreferenceHedgeOptions
The builder for read preference hedge options
-
Method Details
-
enabled
Sets whether hedged reads are enabled in the server.- Parameters:
enabled
- true if hedged reads are enabled- Returns:
- this
-
build
Build the transaction options instance.- Returns:
- The
TransactionOptions
-