Class TomcatVirtualThreadsWebServerFactoryCustomizer

java.lang.Object
org.springframework.boot.autoconfigure.web.embedded.TomcatVirtualThreadsWebServerFactoryCustomizer
All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory>, org.springframework.core.Ordered

public class TomcatVirtualThreadsWebServerFactoryCustomizer extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory>, org.springframework.core.Ordered
Activates VirtualThreadExecutor on Tomcat's protocol handler.
Since:
3.2.0
  • Constructor Details

    • TomcatVirtualThreadsWebServerFactoryCustomizer

      public TomcatVirtualThreadsWebServerFactoryCustomizer()
  • Method Details

    • customize

      public void customize(org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory factory)
      Specified by:
      customize in interface org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory>
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered