I am using MongoOptions class and its methods
setFsync(boolean sync)
setJ(boolean safe)
setW(int val)
setWtimeout(int timeoutMS)
setSafe(boolean isSafe)
How to achieve this using MongoClientOptions as MongoOptions is depracated in Mongo-Java-Driver 3.0. I came to know MongoClientOptions uses
MongoClientOptions.builder()
to create a new Builder instance and then append properties.