, : read prefernece Mongoclient... apis. , .
MongoClient c = new MongoClient(new MongoClientURI("mongodb://localhost"));
DB db = c.getDB("final");
DBCollection animals = db.getCollection("emp");
BasicDBObject animal = new BasicDBObject("emp", "john");
MongoClientOptions options = new MongoClient().setReadPreference(preference);
MongoClientOptions options = new MongoClient().setWriteConcern(concern);
fsynk.
MongoClientOptions options = new MongoClient().fsync(async)