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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionJettyVirtualThreadsWebServerFactoryCustomizer
(ServerProperties serverProperties) -
Method Summary
-
Constructor Details
-
JettyVirtualThreadsWebServerFactoryCustomizer
-
-
Method Details
-
customize
public void customize(org.springframework.boot.web.embedded.jetty.ConfigurableJettyWebServerFactory factory) - Specified by:
customize
in interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.jetty.ConfigurableJettyWebServerFactory>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-