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()
    • JettyVirtualThreadsWebServerFactoryCustomizer

      @Deprecated(since="3.4.12", forRemoval=true) public JettyVirtualThreadsWebServerFactoryCustomizer(ServerProperties serverProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.4.12 for removal in 4.0.0 in favor of JettyVirtualThreadsWebServerFactoryCustomizer.
      Create a new JettyVirtualThreadsWebServerFactoryCustomizer.
      Parameters:
      serverProperties - server properties
  • 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