Class VertxBuilder
- All Implemented Interfaces:
MutinyDelegate
- metrics
- tracing
- cluster manager
Vertx vertx = Vertx.builder().with(options).withMetrics(metricsFactory).build();
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
VertxBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertxBuilder(io.vertx.core.VertxBuilder delegate) Create a new instance ofVertxBuilderdelegating to the given (non-null) instance ofVertxBuilder.VertxBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a non clustered instance.io.smallrye.mutiny.Uni<Vertx>Creates a clustered instance.Creates a clustered instance.Creates a clustered instance.booleanio.vertx.core.VertxBuilderGet the delegate instance.inthashCode()static VertxBuildernewInstance(io.vertx.core.VertxBuilder delegate) Creates a new instance of theVertxBuilder.toString()with(io.vertx.core.VertxOptions options) Configure the Vert.x options.withClusterManager(io.vertx.core.spi.cluster.ClusterManager clusterManager) Programmatically set the cluster manager to be used when clustering.withMetrics(io.vertx.core.spi.VertxMetricsFactory factory) Programmatically set the metrics factory to be used when metrics are enabled.withTracer(io.vertx.core.spi.VertxTracerFactory factory) Programmatically set the tracer factory to be used when tracing are enabled.withTransport(io.vertx.core.transport.Transport transport) Programmatically set the transport, this overridesVertxOptions.setPreferNativeTransport(boolean)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
VertxBuilder
public VertxBuilder(io.vertx.core.VertxBuilder delegate) Create a new instance ofVertxBuilderdelegating to the given (non-null) instance ofVertxBuilder. -
VertxBuilder
-
-
Method Details
-
getDelegate
public io.vertx.core.VertxBuilder getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
buildClustered
Creates a clustered instance.The instance is created asynchronously and the returned uni is completed with the result when it is ready.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
VertxBuilder.buildClustered()
-
buildClusteredAndAwait
Creates a clustered instance.The instance is created asynchronously and the returned underlying uni is completed with the result when it is ready.
Unlike the bare Vert.x variant, this method returns a
Vertx. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
VertxBuilder.buildClustered()
-
buildClusteredAndForget
Creates a clustered instance.The instance is created asynchronously and the returned underlying uni is completed with the result when it is ready.
Unlike the bare Vert.x variant, this method ignores the
Vertxresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
VertxBuilder.buildClustered()
-
with
Configure the Vert.x options.- Parameters:
options- the Vert.x options- Returns:
- a reference to this, so the API can be used fluently
-
withMetrics
Programmatically set the metrics factory to be used when metrics are enabled.Only valid if
MetricsOptions#isEnabled= 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.setPreferNativeTransport(boolean)- 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
-
build
Creates a non clustered instance.- Returns:
- the instance
-
newInstance
Creates a new instance of theVertxBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-