public class VertxBuilder extends Object
Vertx vertx = Vertx.builder().with(options).withMetrics(metricsFactory).build();
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<VertxBuilder> |
__TYPE_ARG |
Constructor and Description |
---|
VertxBuilder(Object delegate) |
VertxBuilder(VertxBuilder delegate) |
Modifier and Type | Method and Description |
---|---|
Vertx |
build()
Creates a non clustered instance.
|
Single<Vertx> |
buildClustered()
Creates a clustered instance.
|
boolean |
equals(Object o) |
VertxBuilder |
getDelegate() |
int |
hashCode() |
static VertxBuilder |
newInstance(VertxBuilder arg) |
Single<Vertx> |
rxBuildClustered()
Creates a clustered instance.
|
String |
toString() |
VertxBuilder |
with(VertxOptions options)
Configure the Vert.x options.
|
VertxBuilder |
withClusterManager(ClusterManager clusterManager)
Programmatically set the cluster manager to be used when clustering.
|
VertxBuilder |
withMetrics(VertxMetricsFactory factory)
Programmatically set the metrics factory to be used when metrics are enabled.
|
VertxBuilder |
withTracer(VertxTracerFactory factory)
Programmatically set the tracer factory to be used when tracing are enabled.
|
public static final io.vertx.lang.rx.TypeArg<VertxBuilder> __TYPE_ARG
public VertxBuilder(VertxBuilder delegate)
public VertxBuilder(Object delegate)
public VertxBuilder getDelegate()
public VertxBuilder with(VertxOptions options)
options
- the Vert.x optionspublic Vertx build()
public Single<Vertx> buildClustered()
The instance is created asynchronously and the returned future is completed with the result when it is ready.
public Single<Vertx> rxBuildClustered()
The instance is created asynchronously and the returned future is completed with the result when it is ready.
public VertxBuilder withMetrics(VertxMetricsFactory factory)
Only valid if = true.
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.
factory
- the metrics factorypublic VertxBuilder withTracer(VertxTracerFactory factory)
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.
factory
- the tracer factorypublic VertxBuilder withClusterManager(ClusterManager clusterManager)
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.
clusterManager
- the cluster managerpublic static VertxBuilder newInstance(VertxBuilder arg)
Copyright © 2024 Eclipse. All rights reserved.