public class MongoClientConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
alwaysUseMBeans
Sets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater - overrides default driver options if specified
|
protected Boolean |
authenticated
do we authenticate the connection
|
protected Map<String,String> |
collectionNames
collection key name and actual name
|
protected Integer |
connectionsPerHost
Sets the maximum number of connections per host - overrides default driver options if specified
|
protected Integer |
connectionTimeout
Sets the connection timeout - overrides default driver options if specified
|
protected List<String> |
connectionUrls
Mongo Driver Properties
|
protected Boolean |
cursorFinalizerEnabled
Sets whether cursor finalizers are enabled.
|
protected String |
databaseName
database name
|
protected String |
description
Sets the description - overrides default driver options if specified
|
protected Integer |
heartbeatConnectTimeout
Sets the heartbeat connect timeout - overrides default driver options if specified
|
protected Integer |
heartbeatFrequency
Sets the heartbeat frequency - overrides default driver options if specified
|
protected Integer |
heartbeatSocketTimeout
Sets the heartbeat connect socket timeout - overrides default driver options if specified
|
protected Boolean |
legacyDefaults
Sets defaults to be what they are in MongoOptions - overrides default driver options if specified
|
protected Integer |
localThreshold
Sets the localThreshold - overrides default driver options if specified
|
protected Integer |
maxConnectionIdleTime
Sets the maximum idle time for a pooled connection - overrides default driver options if specified
|
protected Integer |
maxConnectionLifeTime
Sets the maximum life time for a pooled connection - overrides default driver options if specified
|
protected Integer |
maxWaitTime
Sets the maximum time that a thread will block waiting for a connection - overrides default driver options if specified
|
protected Integer |
minConnectionsPerHost
Sets the minimum number of connections per host - overrides default driver options if specified
|
protected Integer |
minHeartbeatFrequency
Sets the min heart beat frequency - overrides default driver options if specified
|
protected String |
password
authentication credential
|
protected com.mongodb.ReadPreference |
readPreference
represents preferred replica set members to which a query or command can be sent
|
protected String |
requiredReplicaSetName
Sets the required replica set name for the cluster - overrides default driver options if specified
|
protected Boolean |
socketKeepAlive
Sets whether socket keep alive is enabled - overrides default driver options if specified
|
protected Integer |
socketTimeout
Sets the socket timeout - overrides default driver options if specified
|
protected Integer |
threadsAllowedToBlockForConnectionMultiplier
Sets the multiplier for number of threads allowed to block waiting for a connection - overrides default driver options if specified
|
protected String |
username
authentication principal
|
protected com.mongodb.WriteConcern |
writeConcern
Controls the acknowledgment of write operations
|
| Constructor and Description |
|---|
MongoClientConfiguration() |
protected Boolean authenticated
protected String username
protected String password
protected String databaseName
protected com.mongodb.ReadPreference readPreference
protected com.mongodb.WriteConcern writeConcern
protected Integer localThreshold
protected Boolean alwaysUseMBeans
protected Integer connectionsPerHost
protected Integer connectionTimeout
protected Boolean cursorFinalizerEnabled
protected String description
protected Integer minHeartbeatFrequency
protected Integer heartbeatConnectTimeout
protected Integer heartbeatFrequency
protected Integer heartbeatSocketTimeout
protected Boolean legacyDefaults
protected Integer maxConnectionIdleTime
protected Integer maxConnectionLifeTime
protected Integer maxWaitTime
protected Integer minConnectionsPerHost
protected String requiredReplicaSetName
protected Boolean socketKeepAlive
protected Integer socketTimeout
protected Integer threadsAllowedToBlockForConnectionMultiplier
public Boolean isAuthenticated()
public Boolean getAuthenticated()
public void setAuthenticated(Boolean authenticated)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getDatabaseName()
public void setDatabaseName(String databaseName)
public com.mongodb.ReadPreference getReadPreference()
public void setReadPreference(com.mongodb.ReadPreference readPreference)
public com.mongodb.WriteConcern getWriteConcern()
public void setWriteConcern(com.mongodb.WriteConcern writeConcern)
public Integer getLocalThreshold()
public void setLocalThreshold(Integer localThreshold)
public Boolean getAlwaysUseMBeans()
public void setAlwaysUseMBeans(Boolean alwaysUseMBeans)
public Integer getConnectionsPerHost()
public void setConnectionsPerHost(Integer connectionsPerHost)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public Boolean getCursorFinalizerEnabled()
public void setCursorFinalizerEnabled(Boolean cursorFinalizerEnabled)
public String getDescription()
public void setDescription(String description)
public Integer getMinHeartbeatFrequency()
public void setMinHeartbeatFrequency(Integer minHeartbeatFrequency)
public Integer getHeartbeatConnectTimeout()
public void setHeartbeatConnectTimeout(Integer heartbeatConnectTimeout)
public Integer getHeartbeatFrequency()
public void setHeartbeatFrequency(Integer heartbeatFrequency)
public Integer getHeartbeatSocketTimeout()
public void setHeartbeatSocketTimeout(Integer heartbeatSocketTimeout)
public Boolean getLegacyDefaults()
public void setLegacyDefaults(Boolean legacyDefaults)
public Integer getMaxConnectionIdleTime()
public void setMaxConnectionIdleTime(Integer maxConnectionIdleTime)
public Integer getMaxConnectionLifeTime()
public void setMaxConnectionLifeTime(Integer maxConnectionLifeTime)
public Integer getMaxWaitTime()
public void setMaxWaitTime(Integer maxWaitTime)
public Integer getMinConnectionsPerHost()
public void setMinConnectionsPerHost(Integer minConnectionsPerHost)
public String getRequiredReplicaSetName()
public void setRequiredReplicaSetName(String requiredReplicaSetName)
public Boolean getSocketKeepAlive()
public void setSocketKeepAlive(Boolean socketKeepAlive)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getThreadsAllowedToBlockForConnectionMultiplier()
public void setThreadsAllowedToBlockForConnectionMultiplier(Integer threadsAllowedToBlockForConnectionMultiplier)
protected List<com.mongodb.ServerAddress> getServerAddresses()
public void validate()
Copyright © 2007-2017 Ikasan. All Rights Reserved.