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, DEFAULT_MAX_STRING_CACHE_ENTRIES, DEFAULT_MAX_STRING_CACHE_LENGTH, 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.
|
addCredential, addCredential, addPropertyChangeListener, addPropertyChangeListener, addServer, addServer, authenticate, authenticateAsAdmin, getConnectionModel, getConnectTimeout, getCredentials, getDefaultDatabase, getDefaultDurability, getDefaultReadPreference, getExecutor, getLockType, getMaxCachedStringEntries, getMaxCachedStringLength, getMaxConnectionCount, getMaxIdleTickCount, getMaxPendingOperationsPerConnection, getMaxSecondaryLag, getMinConnectionCount, getPasswordHash, getReadTimeout, getReconnectTimeout, getServerAddresses, getServers, getSocketFactory, getThreadFactory, getUserName, isAdminUser, isAuthenticating, isAutoDiscoverServers, isUsingSoKeepalive, removePropertyChangeListener, removePropertyChangeListener, setAutoDiscoverServers, setConnectionModel, setConnectTimeout, setCredentials, setDefaultDatabase, setDefaultDurability, setDefaultReadPreference, setExecutor, setLockType, setMaxCachedStringEntries, setMaxCachedStringLength, setMaxConnectionCount, setMaxIdleTickCount, setMaxPendingOperationsPerConnection, setMaxSecondaryLag, setMinConnectionCount, setReadTimeout, setReconnectTimeout, setServers, setSocketFactory, setThreadFactory, setUsingSoKeepalive
public 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 MongoClientConfiguration
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.