Class VertxBuilder
java.lang.Object
io.vertx.rxjava3.core.VertxBuilder
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A builder for creating Vert.x instances, allowing to configure Vert.x plugins:
- metrics
- tracing
- cluster manager
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a non clustered instance.Creates a clustered instance.booleaninthashCode()static VertxBuildernewInstance(VertxBuilder arg) Creates a clustered instance.toString()with(VertxOptions options) Configure the Vert.x options.withClusterManager(ClusterManager clusterManager) Programmatically set the cluster manager to be used when clustering.withMetrics(VertxMetricsFactory factory) Programmatically set the metrics factory to be used when metrics are enabled.withTracer(VertxTracerFactory factory) Programmatically set the tracer factory to be used when tracing are enabled.withTransport(Transport transport) Programmatically set the transport, this overridesVertxOptions
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
VertxBuilder
-
VertxBuilder
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
with
Configure the Vert.x options.- Parameters:
options- the Vert.x options- Returns:
- a reference to this, so the API can be used fluently
-
build
-
buildClustered
-
rxBuildClustered
-
withMetrics
Programmatically set the metrics factory to be used when metrics are enabled.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.
- Parameters:
factory- the metrics factory- Returns:
- a reference to this, so the API can be used fluently
-
withTracer
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.
- Parameters:
factory- the tracer factory- Returns:
- a reference to this, so the API can be used fluently
-
withTransport
Programmatically set the transport, this overridesVertxOptions- Parameters:
transport- the transport- Returns:
- a reference to this, so the API can be used fluently
-
withClusterManager
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.
- Parameters:
clusterManager- the cluster manager- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
-