-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: Documentation
-
None
The setters MongoClientOptions.maxConnectionIdleTime and MongoClientOptions.maxConnectionLifeTime accept any Integer values, while the Javadoc clearly says:
/** * Sets the maximum life time for a pooled connection. * * @param maxConnectionLifeTime the maximum life time, in milliseconds, which must be > 0 * @return {@code this} * @throws IllegalArgumentException if {@code maxConnectionLifeTime <= 0} * @see com.mongodb.MongoClientOptions#getMaxConnectionIdleTime() * @since 2.12 */
Either the javadoc is wrong, or the driver is wrong.