Set Max Idle Time

This commit is contained in:
Fabio Sinibaldi 2021-10-06 15:12:34 +02:00
parent fe3239a1bc
commit f3afc6b700
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ public class MongoClientProvider extends AbstractScopedMap<MongoClient>{
MongoClientOptions options = MongoClientOptions.builder(). MongoClientOptions options = MongoClientOptions.builder().
threadsAllowedToBlockForConnectionMultiplier(10). threadsAllowedToBlockForConnectionMultiplier(10).
connectionsPerHost(20). connectionsPerHost(20).
maxConnectionIdleTime(10000).
applicationName("geoportal-service"). applicationName("geoportal-service").
sslEnabled(true). sslEnabled(true).
build(); build();