MongoClientConfiguration instead. This
class will be removed on or after the 1.3.0 release.@Deprecated public class MongoDbConfiguration extends MongoClientConfiguration
MongoClientConfiguration except
it defaults the Durability to Durability.NONE instead of
Durability.ACK.ADMIN_DB_NAME, DEFAULT_DB_NAME, UTF8| Constructor and Description |
|---|
MongoDbConfiguration()
Deprecated.
Creates a new MongoDbConfiguration.
|
MongoDbConfiguration(InetSocketAddress... servers)
Deprecated.
Creates a new MongoDbConfiguration.
|
MongoDbConfiguration(MongoDbConfiguration other)
Deprecated.
Creates a new MongoDbConfiguration.
|
MongoDbConfiguration(MongoDbUri mongoDbUri)
Deprecated.
Creates a new
MongoDbConfiguration instance using a MongoDB style
URL to initialize its state. |
MongoDbConfiguration(String mongoDbUri)
Deprecated.
Creates a new
MongoDbConfiguration instance using a MongoDB style
URL to initialize its state. |
| Modifier and Type | Method and Description |
|---|---|
MongoDbConfiguration |
clone()
Deprecated.
Creates a copy of this MongoClientConfiguration.
|
addServer, addServer, authenticate, authenticateAsAdmin, getConnectTimeout, getDefaultDatabase, getDefaultDurability, getDefaultReadPreference, getExecutor, getLockType, getMaxConnectionCount, getMaxPendingOperationsPerConnection, getMaxSecondaryLag, getPasswordHash, getReadTimeout, getReconnectTimeout, getServerAddresses, getServers, getSocketFactory, getThreadFactory, getUserName, isAdminUser, isAuthenticating, isAutoDiscoverServers, isUsingSoKeepalive, setAutoDiscoverServers, setConnectTimeout, setDefaultDatabase, setDefaultDurability, setDefaultReadPreference, setExecutor, setLockType, setMaxConnectionCount, setMaxPendingOperationsPerConnection, setMaxSecondaryLag, setReadTimeout, setReconnectTimeout, setServers, setSocketFactory, setThreadFactory, setUsingSoKeepalivepublic MongoDbConfiguration()
public MongoDbConfiguration(InetSocketAddress... servers)
servers - The initial set of servers to connect to.public MongoDbConfiguration(MongoDbConfiguration other)
other - The configuration to copy.public MongoDbConfiguration(MongoDbUri mongoDbUri) throws IllegalArgumentException
MongoDbConfiguration instance using a MongoDB style
URL to initialize its state. Further configuration is possible once the
MongoDbConfiguration has been instantiated.mongoDbUri - The configuration for the connection to MongoDB expressed as a
MongoDB URL.IllegalArgumentException - If the mongoDbUri is not a properly formated MongoDB
style URL.public MongoDbConfiguration(String mongoDbUri) throws IllegalArgumentException
MongoDbConfiguration instance using a MongoDB style
URL to initialize its state. Further configuration is possible once the
MongoDbConfiguration has been instantiated.mongoDbUri - The configuration for the connection to MongoDB expressed as a
MongoDB URL.IllegalArgumentException - If the mongoDbUri is not a properly formated MongoDB
style URL.public MongoDbConfiguration clone()
Note: This is not a traditional clone to ensure a deep copy of all information.
clone in class MongoClientConfigurationCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.