MongoClientOptionsFactoryBean instead.@Deprecated public class MongoOptionsFactoryBean extends AbstractFactoryBean<com.mongodb.MongoOptions>
MongoOptions instance. In case used with MongoDB Java driver version 3
porperties not suppprted by the driver will be ignored.logger| Constructor and Description |
|---|
MongoOptionsFactoryBean()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.MongoOptions |
createInstance()
Deprecated.
|
Class<?> |
getObjectType()
Deprecated.
|
void |
setAutoConnectRetry(boolean autoConnectRetry)
Deprecated.
since 1.7.
|
void |
setConnectionsPerHost(int connectionsPerHost)
Deprecated.
Configures the maximum number of connections allowed per host until we will block.
|
void |
setConnectTimeout(int connectTimeout)
Deprecated.
Configures the connect timeout in milliseconds.
|
void |
setMaxAutoConnectRetryTime(long maxAutoConnectRetryTime)
Deprecated.
since 1.7
|
void |
setMaxWaitTime(int maxWaitTime)
Deprecated.
Max wait time of a blocking thread for a connection.
|
void |
setSlaveOk(boolean slaveOk)
Deprecated.
since 1.7
|
void |
setSocketKeepAlive(boolean socketKeepAlive)
Deprecated.
Configures whether or not to have socket keep alive turned on (SO_KEEPALIVE).
|
void |
setSocketTimeout(int socketTimeout)
Deprecated.
Configures the socket timeout.
|
void |
setSsl(boolean ssl)
Deprecated.
Specifies if the driver should use an SSL connection to Mongo.
|
void |
setSslSocketFactory(SSLSocketFactory sslSocketFactory)
Deprecated.
Specifies the
SSLSocketFactory to use for creating SSL connections to Mongo. |
void |
setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
Deprecated.
A multiplier for connectionsPerHost for # of threads that can block a connection.
|
void |
setWriteFsync(boolean writeFsync)
Deprecated.
Configures whether or not to fsync.
|
void |
setWriteNumber(int writeNumber)
Deprecated.
This specifies the number of servers to wait for on the write operation, and exception raising behavior.
|
void |
setWriteTimeout(int writeTimeout)
Deprecated.
Configures the timeout for write operations in milliseconds.
|
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonpublic void setConnectionsPerHost(int connectionsPerHost)
connectionsPerHost - public void setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
threadsAllowedToBlockForConnectionMultiplier - public void setMaxWaitTime(int maxWaitTime)
maxWaitTime - public void setConnectTimeout(int connectTimeout)
connectTimeout - public void setSocketTimeout(int socketTimeout)
socketTimeout - public void setSocketKeepAlive(boolean socketKeepAlive)
socketKeepAlive - public void setWriteNumber(int writeNumber)
writeNumber - the number of servers to wait for on the write operation, and exception raising behavior.public void setWriteTimeout(int writeTimeout)
writeTimeout - public void setWriteFsync(boolean writeFsync)
writeFsync - to fsync on write (true), otherwise false.@Deprecated public void setAutoConnectRetry(boolean autoConnectRetry)
@Deprecated public void setMaxAutoConnectRetryTime(long maxAutoConnectRetryTime)
autoConnectRetry is on.maxAutoConnectRetryTime - the maxAutoConnectRetryTime to set@Deprecated public void setSlaveOk(boolean slaveOk)
slaveOk - true if the driver should read from secondaries or slaves.public void setSsl(boolean ssl)
SSLSocketFactory.getDefault() will be used. See setSslSocketFactory(SSLSocketFactory) if you want
to configure a custom factory.ssl - true if the driver should use an SSL connection.setSslSocketFactory(SSLSocketFactory)public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
SSLSocketFactory to use for creating SSL connections to Mongo. Defaults to
SSLSocketFactory.getDefault(). Implicitly activates setSsl(boolean) if a non-null value
is given.sslSocketFactory - the sslSocketFactory to use.setSsl(boolean)protected com.mongodb.MongoOptions createInstance()
throws Exception
createInstance in class AbstractFactoryBean<com.mongodb.MongoOptions>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<com.mongodb.MongoOptions>getObjectType in class AbstractFactoryBean<com.mongodb.MongoOptions>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.