Use missing MongoClientOptions in MongoProperties

See gh-6176
pull/6458/head
Nasko Vasilev 9 years ago committed by Stephane Nicoll
parent 13403a0f72
commit 59f9cfb8a6

@ -39,6 +39,7 @@ import org.springframework.core.env.Environment;
* @author Josh Long * @author Josh Long
* @author Andy Wilkinson * @author Andy Wilkinson
* @author Eddú Meléndez * @author Eddú Meléndez
* @author Nasko Vasilev
*/ */
@ConfigurationProperties(prefix = "spring.data.mongodb") @ConfigurationProperties(prefix = "spring.data.mongodb")
public class MongoProperties { public class MongoProperties {
@ -278,6 +279,15 @@ public class MongoProperties {
builder.threadsAllowedToBlockForConnectionMultiplier( builder.threadsAllowedToBlockForConnectionMultiplier(
options.getThreadsAllowedToBlockForConnectionMultiplier()); options.getThreadsAllowedToBlockForConnectionMultiplier());
builder.writeConcern(options.getWriteConcern()); builder.writeConcern(options.getWriteConcern());
builder.minConnectionsPerHost(options.getMinConnectionsPerHost());
builder.maxConnectionIdleTime(options.getMaxConnectionIdleTime());
builder.maxConnectionLifeTime(options.getMaxConnectionLifeTime());
builder.heartbeatFrequency(options.getHeartbeatFrequency());
builder.minHeartbeatFrequency(options.getMinHeartbeatFrequency());
builder.heartbeatConnectTimeout(options.getHeartbeatConnectTimeout());
builder.heartbeatSocketTimeout(options.getHeartbeatSocketTimeout());
builder.localThreshold(options.getLocalThreshold());
builder.requiredReplicaSetName(options.getRequiredReplicaSetName());
} }
return builder; return builder;
} }

Loading…
Cancel
Save