Package mongoval
Class Watcher
- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- mongoval.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>>
collection
Consumer<com.mongodb.client.ChangeStreamIterable<jsonvalues.JsObj>>
consumer
-
Constructor Summary
Constructors Constructor Description Watcher(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collection, Consumer<com.mongodb.client.ChangeStreamIterable<jsonvalues.JsObj>> consumer)
Watcher(Supplier<com.mongodb.client.MongoCollection<jsonvalues.JsObj>> collection, 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()
-