Package com.mongodb

Interface Cursor

    • Method Detail

      • getCursorId

        long getCursorId​()
        Gets the server's identifier for this Cursor.
        Returns:
        the cursor's ID, or 0 if there is no active cursor.
      • getServerAddress

        ServerAddress getServerAddress​()
        Gets the address of the server that data is pulled from. Note that this information may not be available until hasNext() or next() is called.
        Returns:
        the address of the server that data is pulled from