Most connection pools have no timeout, so I think 120 seconds is a good start.
Obviously it is too high for certain apps, but I do think its a good default.
> * connectTimeout : it's unlimited : I would set it to 200 ms
Agree this shouldn't be unlimited. 200ms is way too aggressive though.
5 or 10 seconds seems appropriate.
> * socketTimeout : it's unlimited : I would set it to 1 second
> * wtimeout : it's unlimited : I would set it to 1 second
For both of these, most people expect no timeout for db operations.
> - there is no setters/getters for these values : it makes uneasy to
> define MongoOptions configuration bean with Spring framework. It would
> be great to have setters/getters for all options.
This definitely makes sense.
For the connect timeout and getters/settings, can you make 2 cases @