Installation

The recommended way to get started using one of the drivers in your project is with a dependency management system.

important

The MongoDB Async Driver requires either Netty or Java 7.

MongoDB Async Driver

The new asynchronous API that can leverage either Netty or Java 7’s AsynchronousSocketChannel for fast and non-blocking IO.


<dependencies>
    <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>mongodb-driver-async</artifactId>
        <version>3.2.2</version>
    </dependency>
</dependencies>

You can also download the jars directly from sonatype.

Note: mongodb-driver-async requires the following dependencies: bson and mongodb-driver-core