This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of the Java Reactive Streams driver.
The recommended way to get started with the Java Reactive Streams driver in your project is by using a dependency management system.
The following dependency contains the Reactive Streams implementation for asynchronous stream processing with non-blocking back pressure.
If you are using Maven to manage your
packages, add the following entry to your pom.xml
dependencies list:
<dependencies> <dependency> <groupId>org.mongodb</groupId> <artifactId>mongodb-driver-reactivestreams</artifactId> <version>5.0.0</version> </dependency> </dependencies>
If you are using Gradle to manage your packages, add the following entry to your dependencies list:
dependencies { implementation 'org.mongodb:mongodb-driver-reactivestreams:5.0.0' }