[JAVA-2481] MongoClientOptions.maxConnectionIdleTime and maxConnectionLifeTime can accept 0 values Created: 02/Apr/17 Updated: 03/Apr/17 Resolved: 03/Apr/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Yonatan Graber | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The setters MongoClientOptions.maxConnectionIdleTime and MongoClientOptions.maxConnectionLifeTime accept any Integer values, while the Javadoc clearly says:
Either the javadoc is wrong, or the driver is wrong. |
| Comments |
| Comment by Ross Lawley [ 03/Apr/17 ] |
|
Thanks yonatang, It should read >=0, the same as documented in MongoClientOptions#getMaxConnectionIdleTime. Ross |
| Comment by Githook User [ 03/Apr/17 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Docs: Fix API docs in MongoClientOptions.Builder Updated maxConnectionIdleTime and maxConnectionLifeTime.
|