Skip to content

Instantly share code, notes, and snippets.

@evanchooly
Created February 16, 2016 15:56
Show Gist options
  • Save evanchooly/424b242d291925ef7baa to your computer and use it in GitHub Desktop.
Save evanchooly/424b242d291925ef7baa to your computer and use it in GitHub Desktop.
public class WriteConcernTest {
public static void main(String[] args) throws InterruptedException {
MongoClient client = MongoClients.create();
System.out.println(client.getSettings().getWriteConcern());
client.getDatabase("test").getCollection("writeConcernTest").insertOne(new Document(), (result, t) -> System.out.println("DONE!"));
Thread.sleep(Long.MAX_VALUE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment