Package io.micronaut.servlet.http
Interface ServletConfiguration
- All Known Implementing Classes:
MicronautServletConfiguration
public interface ServletConfiguration
Configuration for the servlet environment.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Integer
Get the maximum number of threads in the created thread pool.default Integer
Get the minimum number of threads in the created thread pool.boolean
Is async file serving enabled.default boolean
Whether to do request processing asynchronously by default (defaults totrue
).default boolean
Whether to enable virtual thread support if available.
-
Field Details
-
DEFAULT
The default configuration.
-
-
Method Details
-
isAsyncFileServingEnabled
boolean isAsyncFileServingEnabled()Is async file serving enabled.- Returns:
- True if it is.
-
isAsyncSupported
default boolean isAsyncSupported()Whether to do request processing asynchronously by default (defaults totrue
).- Returns:
- True whether async is enabled
- Since:
- 4.8.0
-
isEnableVirtualThreads
default boolean isEnableVirtualThreads()Whether to enable virtual thread support if available.If virtual threads are not available this option does nothing.
- Returns:
- True if they should be enabled
- Since:
- 4.8.0
-
getMinThreads
Get the minimum number of threads in the created thread pool.- Returns:
- The minimum number of threads
-
getMaxThreads
Get the maximum number of threads in the created thread pool.- Returns:
- The maximum number of threads
-