MongoClient interface instead. This interface
will be removed on or after the 1.3.0 release.@Deprecated public class MongoImpl extends MongoClientImpl implements Mongo
| Constructor and Description |
|---|
MongoImpl(Client client)
Deprecated.
Create a new MongoClient.
|
MongoImpl(MongoDbConfiguration config)
Deprecated.
Create a new MongoClient.
|
| Modifier and Type | Method and Description |
|---|---|
Mongo |
asSerializedMongo()
Deprecated.
Use the
MongoClientImpl.asSerializedClient() instead. |
MongoDbConfiguration |
getConfig()
Deprecated.
Returns the configuration being used by the logical MongoDB connection.
|
asSerializedClient, close, getClient, getDatabase, listDatabaseNames, listDatabasesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSerializedClient, getDatabase, listDatabaseNames, listDatabasespublic MongoImpl(Client client)
client - The client interface for interacting with the database.public MongoImpl(MongoDbConfiguration config)
config - The configuration for interacting with MongoDB.@Deprecated public Mongo asSerializedMongo()
MongoClientImpl.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.
Overridden to create a new Mongo instance around a SerialClientImpl.
asSerializedMongo in interface Mongopublic MongoDbConfiguration getConfig()
Overridden to return the clients configuration.
Overridden to return the clients configuration.
getConfig in interface MongogetConfig in interface MongoClientgetConfig in class MongoClientImplCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.