Implement back pressure for asynchronous cursor

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: Async, Query Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently there is no way to pause the firehose of documents returned by asynchronous iteration of a cursor.

      One possibility is to extend MongoFuture with MongoCursorFuture, and add appropriate methods there to implement back pressure:

      public interface MongoCursorFuture extends MongoFuture<Void> {
         void requestMore(int howMany);
      }
      

      *Update*
      Should follow the http://www.reactive-streams.org/ spec once 0.4 is out of milestone

              Assignee:
              Ross Lawley
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: