cursor_manager – Managers to handle when cursors are killed after being closed

DEPRECATED - A manager to handle when cursors are killed after they areclosed.

New cursor managers should be defined as subclasses of CursorManager and can beinstalled on a client by callingset_cursor_manager().

Changed in version 3.3: Deprecated, for real this time.

Changed in version 3.0: Undeprecated. close() nowrequires an address argument. The BatchCursorManager class is removed.

  • class pymongo.cursormanager.CursorManager(_client)
  • Instantiate the manager.

Parameters:

  • client: a MongoClient
  • close(cursor_id, address)
  • Kill a cursor.

Raises TypeError if cursor_id is not an instance of (int, long).

Parameters:

  1. - _cursor_id_: cursor id to close
  2. - _address_: the cursors servers (host, port) pair

Changed in version 3.0: Now requires an address argument.