Class JettyVirtualThreadsWebServerFactoryCustomizer

java.lang.Object
org.springframework.boot.autoconfigure.web.embedded.JettyVirtualThreadsWebServerFactoryCustomizer
All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.jetty.ConfigurableJettyWebServerFactory>, org.springframework.core.Ordered

public class JettyVirtualThreadsWebServerFactoryCustomizer extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.jetty.ConfigurableJettyWebServerFactory>, org.springframework.core.Ordered
Activates virtual threads on the ConfigurableJettyWebServerFactory.
Since:
3.2.0
  • Constructor Details

    • JettyVirtualThreadsWebServerFactoryCustomizer

      public JettyVirtualThreadsWebServerFactoryCustomizer(ServerProperties serverProperties)
  • Method Details

    • customize

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

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