Package io.quarkus.virtual.threads
Class VirtualThreadsConfig
java.lang.Object
io.quarkus.virtual.threads.VirtualThreadsConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanA flag to explicitly disabled virtual threads, even if the JVM support them.Virtual thread name prefix.The frequency at which the status of the executor service should be checked during shutdown.The shutdown timeout. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
namePrefix
Virtual thread name prefix. If left blank virtual threads will be unnamed. -
shutdownTimeout
The shutdown timeout. If all pending work has not been completed by this time then any pending tasks will be interrupted, and the shutdown process will continue -
shutdownCheckInterval
The frequency at which the status of the executor service should be checked during shutdown. Setting this key to an empty value disables the shutdown check interval. -
enabled
A flag to explicitly disabled virtual threads, even if the JVM support them. In this case, methods annotated with@RunOnVirtualThreadare executed on the worker thread pool.This flag is intended to be used when running with virtual threads become more expensive than plain worker threads, because of pinning, monopolization or thread-based object pool.
-
-
Constructor Details
-
VirtualThreadsConfig
public VirtualThreadsConfig()
-