Interface AsyncReadBinding

    • Method Detail

      • getReadPreference

        ReadPreference getReadPreference()
        The read preference that all connection sources returned by this instance will satisfy.
        Returns:
        the non-null read preference
      • getSessionContext

        SessionContext getSessionContext()
        Gets the session context for this binding.
        Returns:
        the session context, which may not be null
        Since:
        3.6
      • getReadConnectionSource

        void getReadConnectionSource​(SingleResultCallback<AsyncConnectionSource> callback)
        Returns a connection source to a server that satisfies the specified read preference.
        Parameters:
        callback - the to be passed the connection source