Interface AsyncConnectionSource

  • All Superinterfaces:
    ReferenceCounted

    @Deprecated
    public interface AsyncConnectionSource
    extends ReferenceCounted
    Deprecated.
    A source of connections to a single MongoDB server.
    Since:
    3.0
    • Method Detail

      • getServerDescription

        ServerDescription getServerDescription()
        Deprecated.
        Gets the current description of this source.
        Returns:
        the current details of the server state.
      • getSessionContext

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

        void getConnection​(SingleResultCallback<AsyncConnection> callback)
        Deprecated.
        Gets a connection from this source.
        Parameters:
        callback - the to be passed the connection