Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.acceptableLatencyDifference(int acceptableLatencyDifference)
Deprecated.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.alwaysUseMBeans(boolean alwaysUseMBeans)
Sets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.autoConnectRetry(boolean autoConnectRetry)
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
static MongoClientOptions.Builder |
MongoClientOptions.builder()
Create a new Builder instance.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.connectionsPerHost(int connectionsPerHost)
Sets the maximum number of connections per host.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.connectTimeout(int connectTimeout)
Sets the connection timeout.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.cursorFinalizerEnabled(boolean cursorFinalizerEnabled)
Sets whether cursor finalizers are enabled.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.dbDecoderFactory(DBDecoderFactory dbDecoderFactory)
Sets the decoder factory.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.dbEncoderFactory(DBEncoderFactory dbEncoderFactory)
Sets the encoder factory.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.description(String description)
Sets the description.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.heartbeatConnectRetryFrequency(int minHeartbeatFrequency)
Deprecated.
replaced by
minHeartbeatFrequency |
MongoClientOptions.Builder |
MongoClientOptions.Builder.heartbeatConnectTimeout(int heartbeatConnectTimeout)
Sets the heartbeat connect timeout.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.heartbeatFrequency(int heartbeatFrequency)
Sets the heartbeat frequency.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.heartbeatSocketTimeout(int heartbeatSocketTimeout)
Sets the heartbeat connect socket timeout.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.heartbeatThreadCount(int heartbeatThreadCount)
Deprecated.
this is no longer a configurable property
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.legacyDefaults()
Sets defaults to be what they are in
MongoOptions . |
MongoClientOptions.Builder |
MongoClientOptions.Builder.localThreshold(int localThreshold)
Sets the local threshold.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.maxAutoConnectRetryTime(long maxAutoConnectRetryTime)
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.maxConnectionIdleTime(int maxConnectionIdleTime)
Sets the maximum idle time for a pooled connection.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.maxConnectionLifeTime(int maxConnectionLifeTime)
Sets the maximum life time for a pooled connection.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.maxWaitTime(int maxWaitTime)
Sets the maximum time that a thread will block waiting for a connection.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.minConnectionsPerHost(int minConnectionsPerHost)
Sets the minimum number of connections per host.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.minHeartbeatFrequency(int minHeartbeatFrequency)
Sets the minimum heartbeat frequency.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.readPreference(ReadPreference readPreference)
Sets the read preference.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.requiredReplicaSetName(String requiredReplicaSetName)
Sets the required replica set name for the cluster.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.socketFactory(SocketFactory socketFactory)
Sets the socket factory.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.socketKeepAlive(boolean socketKeepAlive)
Sets whether socket keep alive is enabled.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.socketTimeout(int socketTimeout)
Sets the socket timeout.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.threadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
Sets the multiplier for number of threads allowed to block waiting for a connection.
|
MongoClientOptions.Builder |
MongoClientOptions.Builder.writeConcern(WriteConcern writeConcern)
Sets the write concern.
|
Constructor and Description |
---|
MongoClientURI(String uri,
MongoClientOptions.Builder builder)
Creates a MongoURI from the given URI string, and MongoClientOptions.Builder.
|