Class VertxConfiguration
- java.lang.Object
-
- io.quarkus.vertx.core.runtime.config.VertxConfiguration
-
@ConfigRoot(phase=RUN_TIME) public class VertxConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleancachingEnables or disables the Vert.x cache.booleanclasspathResolvingEnables or disabled the Vert.x classpath resource resolver.ClusterConfigurationclusterThe cluster configuration.EventBusConfigurationeventbusThe event bus configuration.OptionalInteventLoopsPoolSizeThe number of event loops.floatgrowthResistanceThe executor growth resistance.intinternalBlockingPoolSizeThe size of the internal thread pool (used for the file system).DurationkeepAliveTimeThe amount of time a thread will stay alive with no work.DurationmaxEventLoopExecuteTimeThe maximum amount of time the event loop can be blocked.DurationmaxWorkerExecuteTimeThe maximum amount of time the worker thread can be blocked.booleanpreferNativeTransportEnable or disable native transportbooleanprefillPrefill thread pool when creating a new Executor.OptionalIntqueueSizeThe queue size.AddressResolverConfigurationresolverThe address resolver configuration.booleanuseAsyncDNSEnables the async DNS resolver.DurationwarningExceptionTimeThe amount of time before a warning is displayed if the event loop is blocked.intworkerPoolSizeThe size of the worker thread pool.
-
Constructor Summary
Constructors Constructor Description VertxConfiguration()
-
-
-
Field Detail
-
caching
@ConfigItem(defaultValue="true") public boolean caching
Enables or disables the Vert.x cache.
-
classpathResolving
@ConfigItem(defaultValue="true") public boolean classpathResolving
Enables or disabled the Vert.x classpath resource resolver.
-
eventLoopsPoolSize
@ConfigItem public OptionalInt eventLoopsPoolSize
The number of event loops. 2 x the number of core by default.
-
maxEventLoopExecuteTime
@ConfigItem(defaultValue="2") public Duration maxEventLoopExecuteTime
The maximum amount of time the event loop can be blocked.
-
warningExceptionTime
@ConfigItem(defaultValue="2") public Duration warningExceptionTime
The amount of time before a warning is displayed if the event loop is blocked.
-
workerPoolSize
@ConfigItem(defaultValue="20") public int workerPoolSize
The size of the worker thread pool.
-
maxWorkerExecuteTime
@ConfigItem(defaultValue="60") public Duration maxWorkerExecuteTime
The maximum amount of time the worker thread can be blocked.
-
internalBlockingPoolSize
@ConfigItem(defaultValue="20") public int internalBlockingPoolSize
The size of the internal thread pool (used for the file system).
-
queueSize
@ConfigItem public OptionalInt queueSize
The queue size. For most applications this should be unbounded
-
growthResistance
@ConfigItem public float growthResistance
The executor growth resistance. A resistance factor applied after the core pool is full; values applied here will cause that fraction of submissions to create new threads when no idle thread is available. A value of0.0fimplies that threads beyond the core size should be created as aggressively as threads within it; a value of1.0fimplies that threads beyond the core size should never be created.
-
keepAliveTime
@ConfigItem(defaultValue="30") public Duration keepAliveTime
The amount of time a thread will stay alive with no work.
-
prefill
@ConfigItem(defaultValue="false") public boolean prefill
Prefill thread pool when creating a new Executor. When {@see io.vertx.core.spi.ExecutorServiceFactory.createExecutor} is called, initialise with the number of defined threads at startup
-
useAsyncDNS
@ConfigItem public boolean useAsyncDNS
Enables the async DNS resolver.
-
eventbus
@ConfigItem public EventBusConfiguration eventbus
The event bus configuration.
-
cluster
@ConfigItem public ClusterConfiguration cluster
The cluster configuration.
-
resolver
@ConfigItem public AddressResolverConfiguration resolver
The address resolver configuration.
-
preferNativeTransport
@ConfigItem public boolean preferNativeTransport
Enable or disable native transport
-
-