MongoClient
interface instead. This interface
will be removed on or after the 1.3.0 release.@Deprecated public interface Mongo extends MongoClient
Modifier and Type | Method and Description |
---|---|
Mongo |
asSerializedMongo()
Deprecated.
Use
MongoClient.asSerializedClient() instead. |
MongoDbConfiguration |
getConfig()
Deprecated.
Returns the configuration being used by the logical MongoDB connection.
|
asSerializedClient, getDatabase, listDatabaseNames, listDatabases, restart, restart, restart
@Deprecated Mongo asSerializedMongo()
MongoClient.asSerializedClient()
instead.While the returned Mongo instance is thread safe it is intended to be used by a single logical thread to ensure requests issued to the MongoDB server are guaranteed to be processed in the same order they are requested.
Creation of the serial instance is lightweight with minimal object allocation and no server interaction.
MongoDbConfiguration getConfig()
getConfig
in interface MongoClient
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.