[JAVA-1179] In order to build a tailable cursor, allow to add flags on MongoView Created: 24/Apr/14  Updated: 31/Jul/14  Resolved: 31/Jul/14

Status: Closed
Project: Java Driver
Component/s: API, Async, Query Operations
Affects Version/s: 3.0.0
Fix Version/s: 3.0.0

Type: New Feature Priority: Major - P3
Reporter: Wursteisen David Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: driver, java, tailable-cursor
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-1326 Introduce API for tailable cursors th... Closed

 Description   

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



 Comments   
Comment by Ross Lawley [ 31/Jul/14 ]

See: JAVA-1326

Comment by Jeffrey Yemin [ 24/Apr/14 ]

Yes, we will be introducing this functionality. I'll keep this ticket open to track it.

Thanks for pointing it out.

Generated at Thu Feb 08 08:53:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.