Package com.mongodb

Class ReadPreferenceHedgeOptions.Builder

java.lang.Object
com.mongodb.ReadPreferenceHedgeOptions.Builder
Enclosing class:
ReadPreferenceHedgeOptions

public static final class ReadPreferenceHedgeOptions.Builder extends Object
The builder for read preference hedge options
  • Method Details

    • enabled

      public ReadPreferenceHedgeOptions.Builder enabled(boolean 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