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, listDatabases, restart, restart, restart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSerializedClient, getDatabase, listDatabaseNames, listDatabases, restart, restart, restart
public 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 Mongo
public MongoDbConfiguration getConfig()
Overridden to return the clients configuration.
Overridden to return the clients configuration.
getConfig
in interface Mongo
getConfig
in interface MongoClient
getConfig
in class MongoClientImpl
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.