Class VertxBuilder
- java.lang.Object
- 
- io.vertx.reactivex.core.VertxBuilder
 
- 
- All Implemented Interfaces:
- io.vertx.lang.rx.RxDelegate
 
 public class VertxBuilder extends Object implements 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 originalnon RX-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<VertxBuilder>__TYPE_ARG
 - 
Constructor SummaryConstructors Constructor Description VertxBuilder(VertxBuilder delegate)VertxBuilder(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vertxbuild()Creates a non clustered instance.Future<Vertx>buildClustered()Creates a clustered instance.booleanequals(Object o)VertxBuildergetDelegate()inthashCode()static VertxBuildernewInstance(VertxBuilder arg)Single<Vertx>rxBuildClustered()Creates a clustered instance.StringtoString()VertxBuilderwith(VertxOptions options)Configure the Vert.x options.VertxBuilderwithClusterManager(ClusterManager clusterManager)Programmatically set the cluster manager to be used when clustering.VertxBuilderwithMetrics(VertxMetricsFactory factory)Programmatically set the metrics factory to be used when metrics are enabled.VertxBuilderwithTracer(VertxTracerFactory factory)Programmatically set the tracer factory to be used when tracing are enabled.VertxBuilderwithTransport(Transport transport)Programmatically set the transport, this overridesVertxOptions
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final io.vertx.lang.rx.TypeArg<VertxBuilder> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
VertxBuilderpublic VertxBuilder(VertxBuilder delegate) 
 - 
VertxBuilderpublic VertxBuilder(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic VertxBuilder getDelegate() - Specified by:
- getDelegatein interface- io.vertx.lang.rx.RxDelegate
 
 - 
withpublic VertxBuilder with(VertxOptions options) Configure the Vert.x options.- Parameters:
- options- the Vert.x options
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
buildpublic Vertx build() Creates a non clustered instance.- Returns:
- the instance
 
 - 
buildClusteredpublic Future<Vertx> buildClustered() Creates a clustered instance.The instance is created asynchronously and the returned future is completed with the result when it is ready. - Returns:
- a future completed with the clustered vertx
 
 - 
rxBuildClusteredpublic Single<Vertx> rxBuildClustered() Creates a clustered instance.The instance is created asynchronously and the returned future is completed with the result when it is ready. - Returns:
- a future completed with the clustered vertx
 
 - 
withMetricspublic VertxBuilder withMetrics(VertxMetricsFactory factory) 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
 
 - 
withTracerpublic 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. - Parameters:
- factory- the tracer factory
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
withTransportpublic VertxBuilder withTransport(Transport transport) Programmatically set the transport, this overridesVertxOptions- Parameters:
- transport- the transport
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
withClusterManagerpublic 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. - Parameters:
- clusterManager- the cluster manager
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
newInstancepublic static VertxBuilder newInstance(VertxBuilder arg) 
 
- 
 
-