public class ReactiveMongoClientSettingsFactoryBean extends AbstractFactoryBean<com.mongodb.async.client.MongoClientSettings>
MongoClientSettings
instance to be used with the async MongoDB driver.logger
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
ReactiveMongoClientSettingsFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
addMongoCredential(com.mongodb.MongoCredential mongoCredential)
Adds the
MongoCredential to the list of credentials. |
protected com.mongodb.async.client.MongoClientSettings |
createInstance() |
Class<?> |
getObjectType() |
void |
setClusterSettings(com.mongodb.connection.ClusterSettings clusterSettings)
Set the
ClusterSettings . |
void |
setCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)
Set the
CodecRegistry . |
void |
setConnectionPoolSettings(com.mongodb.connection.ConnectionPoolSettings connectionPoolSettings)
Set the
ConnectionPoolSettings . |
void |
setCredentialList(List<com.mongodb.MongoCredential> credentialList)
Set the List of
MongoCredential s. |
void |
setHeartbeatSocketSettings(com.mongodb.connection.SocketSettings heartbeatSocketSettings)
Set the heartbeat
SocketSettings . |
void |
setReadConcern(com.mongodb.ReadConcern readConcern)
Set the
ReadConcern . |
void |
setReadPreference(com.mongodb.ReadPreference readPreference)
Set the
ReadPreference . |
void |
setServerSettings(com.mongodb.connection.ServerSettings serverSettings)
Set the
ServerSettings . |
void |
setSocketSettings(com.mongodb.connection.SocketSettings socketSettings)
Set the
SocketSettings . |
void |
setSslSettings(com.mongodb.connection.SslSettings sslSettings)
Set the
SslSettings . |
void |
setStreamFactoryFactory(com.mongodb.connection.StreamFactoryFactory streamFactoryFactory)
Set the
StreamFactoryFactory . |
void |
setWriteConcern(com.mongodb.WriteConcern writeConcern)
Set the
WriteConcern . |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public ReactiveMongoClientSettingsFactoryBean()
public void setReadPreference(com.mongodb.ReadPreference readPreference)
ReadPreference
.readPreference
- public void setWriteConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern
.writeConcern
- public void setReadConcern(com.mongodb.ReadConcern readConcern)
ReadConcern
.readConcern
- public void setCredentialList(List<com.mongodb.MongoCredential> credentialList)
MongoCredential
s.credentialList
- must not be null.public void addMongoCredential(com.mongodb.MongoCredential mongoCredential)
MongoCredential
to the list of credentials.mongoCredential
- must not be null.public void setStreamFactoryFactory(com.mongodb.connection.StreamFactoryFactory streamFactoryFactory)
StreamFactoryFactory
.streamFactoryFactory
- public void setCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)
CodecRegistry
.codecRegistry
- public void setClusterSettings(com.mongodb.connection.ClusterSettings clusterSettings)
ClusterSettings
.clusterSettings
- public void setSocketSettings(com.mongodb.connection.SocketSettings socketSettings)
SocketSettings
.socketSettings
- public void setHeartbeatSocketSettings(com.mongodb.connection.SocketSettings heartbeatSocketSettings)
SocketSettings
.heartbeatSocketSettings
- public void setConnectionPoolSettings(com.mongodb.connection.ConnectionPoolSettings connectionPoolSettings)
ConnectionPoolSettings
.connectionPoolSettings
- public void setServerSettings(com.mongodb.connection.ServerSettings serverSettings)
ServerSettings
.serverSettings
- public void setSslSettings(com.mongodb.connection.SslSettings sslSettings)
SslSettings
.sslSettings
- public Class<?> getObjectType()
getObjectType
in interface FactoryBean<com.mongodb.async.client.MongoClientSettings>
getObjectType
in class AbstractFactoryBean<com.mongodb.async.client.MongoClientSettings>
protected com.mongodb.async.client.MongoClientSettings createInstance() throws Exception
createInstance
in class AbstractFactoryBean<com.mongodb.async.client.MongoClientSettings>
Exception
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.