allanbank / mongodb-async-driver

The MongoDB Asynchronous Java Driver.
Apache License 2.0
22 stars 15 forks source link

Durability fix #26

Open igreenfield opened 8 years ago

allanbank commented 8 years ago

Please only one change per pull request.

We can also not change the type for the Durability.MAJORITY_MODE without breaking binary compatibility. As I explained in #25 I don't think having a static Durability for majority is a good idea since the value of the wait time is dependant on per-project/user requirements.

If you could change the pull request to enhance the JavaDoc to Durability.MAJORITY_MODE to explain how to use it to create a majority mode Durability I think that is something that could be merged.