public interface CollectorJob
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Handler<io.vertx.core.Future<CollectorJobResult>> |
collect(java.lang.String requestId,
io.vertx.core.json.JsonObject feature)
This method should be used to create a Future that contains the collection logic.
|
io.vertx.core.Handler<io.vertx.core.Future<CollectorJobResult>> |
postCollectAction(io.vertx.core.AsyncResult<CollectorJobResult> result)
This method will be called after the
collect(String, JsonObject) method and returns a Future which can
be used to do some post-collect stuff like rough parsing or saving the result into a database. |
io.vertx.core.Handler<io.vertx.core.Future<CollectorJobResult>> collect(java.lang.String requestId, io.vertx.core.json.JsonObject feature)
requestId
- A request id to identify the collection request.feature
- A JSON object to pass attributes and properties which are needed for the collection process.io.vertx.core.Handler<io.vertx.core.Future<CollectorJobResult>> postCollectAction(io.vertx.core.AsyncResult<CollectorJobResult> result)
collect(String, JsonObject)
method and returns a Future which can
be used to do some post-collect stuff like rough parsing or saving the result into a database. The Future will be
executed in a worker thread pool, which allows blocking operations inside the Future.result
- The CollectorJobResult
from the previous called collect(String, JsonObject)
method.