public class DataCollectorServiceVerticle
extends io.vertx.core.AbstractVerticle
| Constructor and Description |
|---|
DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics) |
DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics,
long maxExecuteTimeout) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getServiceAddress() |
void |
init(io.vertx.core.Vertx vertx,
io.vertx.core.Context context) |
void |
start(io.vertx.core.Future<java.lang.Void> startFuture) |
void |
stop(io.vertx.core.Future<java.lang.Void> stopFuture) |
public DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics)
address - The eventbus addressjob - The job which will be processed in the CollectorJobExecutorworkerPoolSize - The pool size of the CollectorJobExecutorqueueSize - The queue size of CollectorJob requestsenableMetrics - Enables metrics for the DataCollectorServicepublic DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics,
long maxExecuteTimeout)
address - The eventbus addressjob - The job which will be processed in the CollectorJobExecutorworkerPoolSize - The pool size of the CollectorJobExecutorqueueSize - The queue size of CollectorJob requestsenableMetrics - Enables metrics for the DataCollectorServicemaxExecuteTimeout - Timeout for a job in the ExecutorPool in millisecondspublic void init(io.vertx.core.Vertx vertx,
io.vertx.core.Context context)
init in interface io.vertx.core.Verticleinit in class io.vertx.core.AbstractVerticlepublic void start(io.vertx.core.Future<java.lang.Void> startFuture)
throws java.lang.Exception
start in interface io.vertx.core.Verticlestart in class io.vertx.core.AbstractVerticlejava.lang.Exceptionpublic void stop(io.vertx.core.Future<java.lang.Void> stopFuture)
throws java.lang.Exception
stop in interface io.vertx.core.Verticlestop in class io.vertx.core.AbstractVerticlejava.lang.Exceptionpublic java.lang.String getServiceAddress()