Interface ServletConfiguration

All Known Implementing Classes:
MicronautServletConfiguration

public interface ServletConfiguration
Configuration for the servlet environment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The default configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    default 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 to true).
    default boolean
    Whether to enable virtual thread support if available.
  • Field Details

  • 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 to true).
      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

      default Integer getMinThreads()
      Get the minimum number of threads in the created thread pool.
      Returns:
      The minimum number of threads
    • getMaxThreads

      default Integer getMaxThreads()
      Get the maximum number of threads in the created thread pool.
      Returns:
      The maximum number of threads