Vertx vertx = Vertx.builder().with(options).withMetrics(metricsFactory).build();
| Modifier and Type | Method and Description |
|---|---|
| public Vertx | |
| public Future | |
| public default void | Returns: a future completed with the clustered vertxCreates a clustered instance. |
| public VertxBuilder | Returns: a reference to this, so the API can be used fluentlythe Vert.x options options)Configure the Vert.x options. |
| public VertxBuilder | Returns: a reference to this, so the API can be used fluentlythe cluster manager clusterManager)Programmatically set the cluster manager to be used when clustering. |
| public VertxBuilder | Returns: a reference to this, so the API can be used fluentlythe metrics factory factory)Programmatically set the metrics factory to be used when metrics are enabled. |
| public VertxBuilder | Returns: a reference to this, so the API can be used fluentlythe tracer factory factory)Programmatically set the tracer factory to be used when tracing are enabled. |
| build | back to summary |
|---|---|
| public Vertx build() Creates a non clustered instance.
| |
| buildClustered | back to summary |
|---|---|
| public Future Creates a clustered instance. The instance is created asynchronously and the returned future is completed with the result when it is ready. | |
| buildClustered | back to summary |
|---|---|
| public default void buildClustered(Handler<AsyncResult<Vertx>> handler) Creates a clustered instance. The instance is created asynchronously and the returned future is completed with the result when it is ready.
| |
| with | back to summary |
|---|---|
| public VertxBuilder with(VertxOptions options) Configure the Vert.x options.
| |
| withClusterManager | back to summary |
|---|---|
| public VertxBuilder withClusterManager(ClusterManager clusterManager) Programmatically set the cluster manager to be used when clustering. Only valid if clustered = true. Normally Vert.x will look on the classpath for a cluster manager, but if you want to set one programmatically you can use this method.
| |
| withMetrics | back to summary |
|---|---|
| public VertxBuilder withMetrics(VertxMetricsFactory factory) Programmatically set the metrics factory to be used when metrics are enabled.
Only valid if Normally Vert.x will look on the classpath for a metrics factory implementation, but if you want to set one programmatically you can use this method.
| |
| withTracer | back to summary |
|---|---|
| public VertxBuilder withTracer(VertxTracerFactory factory) Programmatically set the tracer factory to be used when tracing are enabled. Normally Vert.x will look on the classpath for a tracer factory implementation, but if you want to set one programmatically you can use this method.
| |