Class JettyVirtualThreadsWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.jetty.autoconfigure.JettyVirtualThreadsWebServerFactoryCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<ConfigurableJettyWebServerFactory>, org.springframework.core.Ordered
public class JettyVirtualThreadsWebServerFactoryCustomizer
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<ConfigurableJettyWebServerFactory>, org.springframework.core.Ordered
Activates virtual threads on the
ConfigurableJettyWebServerFactory.- Since:
- 4.0.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.JettyVirtualThreadsWebServerFactoryCustomizer(JettyServerProperties serverProperties) Create a new JettyVirtualThreadsWebServerFactoryCustomizer. -
Method Summary
-
Constructor Details
-
JettyVirtualThreadsWebServerFactoryCustomizer
Deprecated, for removal: This API element is subject to removal in a future version.since 4.0.3 for removal in 4.3.0 in favor ofJettyVirtualThreadsWebServerFactoryCustomizer(JettyServerProperties)Create a new JettyVirtualThreadsWebServerFactoryCustomizer. -
JettyVirtualThreadsWebServerFactoryCustomizer
Create a new JettyVirtualThreadsWebServerFactoryCustomizer.- Parameters:
serverProperties- the server properties
-
-
Method Details
-
customize
- Specified by:
customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<ConfigurableJettyWebServerFactory>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
JettyVirtualThreadsWebServerFactoryCustomizer(JettyServerProperties)