vertx.mongodb.effect.MongoModule Maven / Gradle / Ivy
package vertx.mongodb.effect;
import com.mongodb.client.MongoCollection;
import io.vertx.core.DeploymentOptions;
import jsonvalues.JsObj;
import vertx.effect.VertxModule;
import java.util.function.Supplier;
import static java.util.Objects.requireNonNull;
public abstract class MongoModule extends VertxModule {
public final Supplier> collectionSupplier;
/**
* Creates a new mongo module.
*
* @param collectionSupplier the mongo collection supplier
* @param deploymentOptions the verticles deployment options
*/
public MongoModule(final Supplier> collectionSupplier,
final DeploymentOptions deploymentOptions
) {
super(deploymentOptions);
this.collectionSupplier = requireNonNull(collectionSupplier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy