Set Max Idle Time
This commit is contained in:
parent
fe3239a1bc
commit
f3afc6b700
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue