allanbank / mongodb-async-driver

The MongoDB Asynchronous Java Driver.
Apache License 2.0
22 stars 14 forks source link

Read OpLog support #22

Open igreenfield opened 9 years ago

igreenfield commented 9 years ago

Does the driver has support for reading the OpLog collection as the native driver?

allanbank commented 9 years ago

You can certainly query and tail the oplog but the driver never exposed the oplogReplay since MongoDB Inc. have consistently made noises that it will go away.

With the restartable cursors the need for the oplogReplay is greatly diminished since you can persist the identity of a cursor and restart where you left off without the need to seek in the oplog at all.