Interface VertxConfiguration
@ConfigMapping(prefix="quarkus.vertx")
@ConfigRoot(phase=RUN_TIME)
public interface VertxConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionConfigure the file cache directory.booleancaching()Enables or disables the Vert.x cache.booleanEnables or disabled the Vert.x classpath resource resolver.cluster()The cluster configuration.eventbus()The event bus configuration.The number of event loops.floatThe executor growth resistance.intThe size of the internal thread pool (used for the file system).The amount of time a thread will stay alive with no work.The maximum amount of time the event loop can be blocked.The maximum amount of time the worker thread can be blocked.booleanEnable or disable native transportbooleanprefill()Prefill thread pool when creating a new Executor.The queue size.resolver()The address resolver configuration.booleanEnables the async DNS resolver.The amount of time before a warning is displayed if the event loop is blocked.intDeprecated.
-
Method Details
-
caching
@WithDefault("true") boolean caching()Enables or disables the Vert.x cache. -
cacheDirectory
Configure the file cache directory. When not set, the cache is stored in the system temporary directory (read from the `java.io.tmpdir` system property). If the `java.io.tmpdir` is not set `.` is used.Note that this property is ignored if the `vertx.cacheDirBase` system property is set.
-
classpathResolving
@WithDefault("true") boolean classpathResolving()Enables or disabled the Vert.x classpath resource resolver. -
eventLoopsPoolSize
OptionalInt eventLoopsPoolSize()The number of event loops. By default, it matches the number of CPUs detected on the system. -
maxEventLoopExecuteTime
The maximum amount of time the event loop can be blocked. -
warningExceptionTime
The amount of time before a warning is displayed if the event loop is blocked. -
workerPoolSize
Deprecated.usequarkus.thread-pool.max-threadsinsteadThe size of the worker pool size. -
maxWorkerExecuteTime
The maximum amount of time the worker thread can be blocked. -
internalBlockingPoolSize
@WithDefault("20") int internalBlockingPoolSize()The size of the internal thread pool (used for the file system). -
queueSize
OptionalInt queueSize()The queue size. For most applications this should be unbounded -
growthResistance
@WithDefault("0") 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 of
0.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
The amount of time a thread will stay alive with no work. -
prefill
@WithDefault("false") boolean prefill()Prefill thread pool when creating a new Executor. WhenExecutorServiceFactory.createExecutor(java.util.concurrent.ThreadFactory, java.lang.Integer, java.lang.Integer)is called, initialise with the number of defined threads at startup -
useAsyncDNS
@WithDefault("false") boolean useAsyncDNS()Enables the async DNS resolver. -
eventbus
EventBusConfiguration eventbus()The event bus configuration. -
cluster
ClusterConfiguration cluster()The cluster configuration. -
resolver
AddressResolverConfiguration resolver()The address resolver configuration. -
preferNativeTransport
@WithDefault("false") boolean preferNativeTransport()Enable or disable native transport
-
quarkus.thread-pool.max-threadsinstead