Class TomcatVirtualThreadsWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.autoconfigure.web.embedded.TomcatVirtualThreadsWebServerFactoryCustomizer
- All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableTomcatWebServerFactory>,Ordered
public class TomcatVirtualThreadsWebServerFactoryCustomizer
extends Object
implements WebServerFactoryCustomizer<ConfigurableTomcatWebServerFactory>, Ordered
Activates
VirtualThreadExecutor on Tomcat's protocol
handler.- Since:
- 3.2.0
- Author:
- Moritz Halbritter
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TomcatVirtualThreadsWebServerFactoryCustomizer
public TomcatVirtualThreadsWebServerFactoryCustomizer()
-
-
Method Details
-
customize
Description copied from interface:WebServerFactoryCustomizerCustomize the specifiedWebServerFactory.- Specified by:
customizein interfaceWebServerFactoryCustomizer<ConfigurableTomcatWebServerFactory>- Parameters:
factory- the web server factory to customize
-
getOrder
public int getOrder()
-