Package com.mongodb

Examples of com.mongodb.DBCollection.slaveOk()


        DBCollection dbColl = db.getCollection(MongoDBUtils.getCollectionName(cmd));
        Object val = (options != null ? options.get("slave-ok") : Boolean.FALSE);
        if (val == Boolean.TRUE)
        {
            dbColl.slaveOk();
        }
        DBCursor curs = dbColl.find(query, fieldsSelection);
        try
        {
            if (cmd.getIdentityType() == IdentityType.APPLICATION)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.