File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
src/main/java/org/minbox/framework/mongo/client/setting Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
33import lombok .Data ;
44
5+ import static java .util .concurrent .TimeUnit .MILLISECONDS ;
6+ import static java .util .concurrent .TimeUnit .MINUTES ;
7+
58/**
69 * All settings that relate to the pool of connections to a MongoDB server.
710 *
1114 */
1215@ Data
1316public class ConnectionPoolSettings {
14- private int maxSize ;
17+ private int maxSize = 100 ;
1518 private int minSize ;
16- private long maxWaitTimeMilliSeconds ;
19+ private long maxWaitTimeMilliSeconds = 1000 * 60 * 2 ;
1720 private long maxConnectionLifeTimeMilliSeconds ;
1821 private long maxConnectionIdleTimeMilliSeconds ;
1922 private long maintenanceInitialDelayMilliSeconds ;
20- private long maintenanceFrequencyMilliSeconds ;
23+ private long maintenanceFrequencyMilliSeconds = MILLISECONDS .convert (1 , MINUTES );
24+ ;
2125}
Original file line number Diff line number Diff line change 1111 */
1212@ Data
1313public class ServerSettings {
14- private long heartbeatFrequencyMilliSeconds ;
15- private long minHeartbeatFrequencyMilliSeconds ;
14+ private long heartbeatFrequencyMilliSeconds = 10000 ;
15+ private long minHeartbeatFrequencyMilliSeconds = 500 ;
1616}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class SocketSettings {
1818 /**
1919 * The socket read timeout MilliSeconds
2020 */
21- private long readTimeoutMilliSeconds ;
21+ private long readTimeoutMilliSeconds = 10000 ;
2222 /**
2323 * The receive buffer size
2424 */
You can’t perform that action at this time.
0 commit comments