Class MongoModule

java.lang.Object
io.vertx.core.AbstractVerticle
vertx.effect.VertxModule
vertx.mongodb.effect.MongoModule
All Implemented Interfaces:
io.vertx.core.Verticle

public abstract class MongoModule extends vertx.effect.VertxModule
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>>
     

    Fields inherited from class vertx.effect.VertxModule

    deploymentOptions, vertxRef

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • 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 vertx.effect.VertxModule

    ask, ask, deploy, deploy, deploy, deploy, deploy, deployConsumer, deployConsumer, deployVerticle, deployVerticle, initialize, start, tell, tell, trace, trace

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • collectionSupplier

      public final Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier
  • Constructor Details

    • 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 supplier
      deploymentOptions - the verticles deployment options
    • MongoModule

      public MongoModule(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier)