File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 39
39
* @author Josh Long
40
40
* @author Andy Wilkinson
41
41
* @author Eddú Meléndez
42
+ * @author Nasko Vasilev
42
43
*/
43
44
@ ConfigurationProperties (prefix = "spring.data.mongodb" )
44
45
public class MongoProperties {
@@ -278,6 +279,15 @@ private Builder builder(MongoClientOptions options) {
278
279
builder .threadsAllowedToBlockForConnectionMultiplier (
279
280
options .getThreadsAllowedToBlockForConnectionMultiplier ());
280
281
builder .writeConcern (options .getWriteConcern ());
282
+ builder .minConnectionsPerHost (options .getMinConnectionsPerHost ());
283
+ builder .maxConnectionIdleTime (options .getMaxConnectionIdleTime ());
284
+ builder .maxConnectionLifeTime (options .getMaxConnectionLifeTime ());
285
+ builder .heartbeatFrequency (options .getHeartbeatFrequency ());
286
+ builder .minHeartbeatFrequency (options .getMinHeartbeatFrequency ());
287
+ builder .heartbeatConnectTimeout (options .getHeartbeatConnectTimeout ());
288
+ builder .heartbeatSocketTimeout (options .getHeartbeatSocketTimeout ());
289
+ builder .localThreshold (options .getLocalThreshold ());
290
+ builder .requiredReplicaSetName (options .getRequiredReplicaSetName ());
281
291
}
282
292
return builder ;
283
293
}
You can’t perform that action at this time.
0 commit comments