Package vertx.mongodb.effect
Class Watcher
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- vertx.mongodb.effect.Watcher
-
- All Implemented Interfaces:
io.vertx.core.Verticle
public class Watcher extends io.vertx.core.AbstractVerticle
-
-
Field Summary
Fields Modifier and Type Field Description Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>>
collectionSupplier
Consumer<com.mongodb.client.ChangeStreamIterable<jsonvalues.JsObj>>
consumer
-
Constructor Summary
Constructors Constructor Description Watcher(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier, Consumer<com.mongodb.client.ChangeStreamIterable<jsonvalues.JsObj>> consumer)
Watcher(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collectionSupplier, Consumer<com.mongodb.client.ChangeStreamIterable<jsonvalues.JsObj>> consumer, com.mongodb.client.ClientSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(io.vertx.core.Promise<Void> promise)
-
-
-
Method Detail
-
start
public void start(io.vertx.core.Promise<Void> promise)
- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
-
-