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 MongoDB Async Driver provides asynchronous API that can leverage either Netty or Java 7’s AsynchronousSocketChannel for fast and non-blocking I/O.


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

Note: You can also download the mongodb-driver-async jar directly from sonatype.

If downloading mongodb-driver-async manually, you must also download its dependencies: bson and mongodb-driver-core