Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1179

In order to build a tailable cursor, allow to add flags on MongoView

      I'm currently trying new async method of the new mongodb java driver.

      Looking at the code, it's not possible to set "flags" on find query throught mongo collection as Find#addFlags is not expoted in the MongoView

      {code=java}

      collection.find().withFlags(Tailable& AwaitData).asyncForEach(...);

      
      

      the idea is to build a tailable cursor as in Reactive Mongo scala driver (see https://github.com/sgodbillon/reactivemongo-tailablecursor-demo )

      Is it something that you plan to introduce in the 3.0.0 driver ?
      If not, there is a way to achieve this ?

      Regards

            Assignee:
            Unassigned Unassigned
            Reporter:
            dwursteisen Wursteisen David
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: