Package com.mongodb

Class ReadPreferenceHedgeOptions.Builder

  • Enclosing class:
    ReadPreferenceHedgeOptions

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

      • 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