Class ManagedThreadFactoryDefinitionServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ee.jakarta.tck.concurrent.framework.TestServlet
ee.jakarta.tck.concurrent.spec.ManagedThreadFactory.resourcedef.ManagedThreadFactoryDefinitionServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
@WebServlet("/ManagedThreadFactoryDefinitionServlet")
public class ManagedThreadFactoryDefinitionServlet
extends TestServlet
- See Also:
-
Field Summary
Fields inherited from class ee.jakarta.tck.concurrent.framework.TestServlet
FAILURE, nl, SUCCESS, TEST_METHOD
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
A ManagedThreadFactoryDefinition with all attributes configured enforces priority and propagates context.void
ManagedThreadFactoryDefinition with minimal attributes creates threads with normal priority and uses java:comp/DefaultContextService to determine context propagation and clearing.void
ManagedThreadFactory can be supplied to a ForkJoinPool, causing ForkJoinPool tasks to run with the thread context and priority as configured.Methods inherited from class ee.jakarta.tck.concurrent.framework.TestServlet
after, before, beforeClass, doGet, doPost, getResponse, invokeTest, sendPostData
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ManagedThreadFactoryDefinitionServlet
public ManagedThreadFactoryDefinitionServlet()
-
-
Method Details
-
testManagedThreadFactoryDefinitionAllAttributes
A ManagedThreadFactoryDefinition with all attributes configured enforces priority and propagates context.- Throws:
Throwable
-
testManagedThreadFactoryDefinitionDefaults
ManagedThreadFactoryDefinition with minimal attributes creates threads with normal priority and uses java:comp/DefaultContextService to determine context propagation and clearing.- Throws:
Throwable
-
testParallelStreamBackedByManagedThreadFactory
ManagedThreadFactory can be supplied to a ForkJoinPool, causing ForkJoinPool tasks to run with the thread context and priority as configured.- Throws:
Throwable
-