Manipulate Network Options
Manipulate Network Options
com.mongodb.Bytes
com.mongodb.Mongo
Gets the address of this database.
Gets the address of this database.
(ServerAddress) The address of the DB
Apply method which proxies getDB, allowing you to call
connInstance("dbName")
Apply method which proxies getDB, allowing you to call
connInstance("dbName")
(String) A string for the database name
MongoDB A wrapped instance of a Mongo 'DB Class.
Closes all open connections.
Closes all open connections. NOTE: This connection can't be reused after closing.
on error
on error
Drops the database if it exists.
Drops the database if it exists.
(String) the name of the database to drop
on error
Gets the address of this database.
Gets the address of this database.
(ServerAddress) The address of the DB
on error
Manipulate Network Options
Manipulate Network Options
com.mognodb.Bytes
com.mongodb.Mongo
Gets the read preference for this database.
Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
get the write concern for this database, which is used for writes to any collection in this database.
get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
WriteConcern
Manipulate Network Options
Manipulate Network Options
com.mognodb.Bytes
com.mongodb.Mongo
Gets the read preference for this database.
Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Sets the read preference for this database.
Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Read Preference to use
Manipulate Network Options
Manipulate Network Options
com.mongodb.Bytes
com.mongodb.Mongo
Sets the read preference for this database.
Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Read Preference to use
Set the write concern for this database.
Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
(WriteConcern) The write concern to use
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
WriteConcern
get the write concern for this database, which is used for writes to any collection in this database.
get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
WriteConcern
Set the write concern for this database.
Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
(WriteConcern) The write concern to use
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
WriteConcern
(Since version 2.7) This method is NOT a part of public API and will be dropped in 2.8
Sets queries to be OK to run on slave nodes.
Sets queries to be OK to run on slave nodes.
(Since version 2.3.0) Replaced with ReadPreference.SECONDARY
Wrapper class for the Mongo Connection object.
(Since version 2.7) Please use MongoClient