Class SingleServerBinding

    • Constructor Detail

      • SingleServerBinding

        public SingleServerBinding​(Cluster cluster,
                                   ServerAddress serverAddress)
        Deprecated.
        Creates an instance, defaulting to ReadPreference.primary() for reads.
        Parameters:
        cluster - a non-null Cluster which will be used to select a server to bind to
        serverAddress - a non-null address of the server to bind to
      • SingleServerBinding

        public SingleServerBinding​(Cluster cluster,
                                   ServerAddress serverAddress,
                                   ReadPreference readPreference)
        Deprecated.
        Creates an instance.
        Parameters:
        cluster - a non-null Cluster which will be used to select a server to bind to
        serverAddress - a non-null address of the server to bind to
        readPreference - a non-null ReadPreference for read operations