Installation

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

important

When TLS/SSL is disabled, the MongoDB Async Driver requires either Netty or Java 7+. When TLS/SSL is enabled, the MongoDB Async Driver requires either Netty or Java 8+.

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.11.3</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