Package mongoval
Class MongoModule
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- vertxval.VertxModule
-
- mongoval.MongoModule
-
- All Implemented Interfaces:
io.vertx.core.Verticle
public abstract class MongoModule extends vertxval.VertxModule
-
-
Field Summary
Fields Modifier and Type Field Description Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>>
collectionSupplier
-
Constructor Summary
Constructors Constructor Description MongoModule(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier)
MongoModule(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier, io.vertx.core.DeploymentOptions deploymentOptions)
Creates a new mongo module.
-
Method Summary
-
Methods inherited from class vertxval.VertxModule
define, deploy, deployConsumer, deployConsumer, deployFn, deployFn, deployTask, deployTask, deployVerticle, deployλ, deployλ, getDeployedVerticle, start
-
-
-
-
Field Detail
-
collectionSupplier
public final Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier
-
-
Constructor Detail
-
MongoModule
public MongoModule(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier, io.vertx.core.DeploymentOptions deploymentOptions)
Creates a new mongo module. The given deploymentOptions instances and worker options are overwritten to one and true respectively.- Parameters:
collectionSupplier
- the mongo collection supplierdeploymentOptions
- the verticles deployment options
-
MongoModule
public MongoModule(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier)
-
-