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:
  • Constructor Details

    • ManagedThreadFactoryDefinitionServlet

      public ManagedThreadFactoryDefinitionServlet()
  • Method Details

    • testManagedThreadFactoryDefinitionAllAttributes

      public void testManagedThreadFactoryDefinitionAllAttributes() throws Throwable
      A ManagedThreadFactoryDefinition with all attributes configured enforces priority and propagates context.
      Throws:
      Throwable
    • testManagedThreadFactoryDefinitionDefaults

      public void testManagedThreadFactoryDefinitionDefaults() throws Throwable
      ManagedThreadFactoryDefinition with minimal attributes creates threads with normal priority and uses java:comp/DefaultContextService to determine context propagation and clearing.
      Throws:
      Throwable
    • testParallelStreamBackedByManagedThreadFactory

      public void testParallelStreamBackedByManagedThreadFactory() throws Throwable
      ManagedThreadFactory can be supplied to a ForkJoinPool, causing ForkJoinPool tasks to run with the thread context and priority as configured.
      Throws:
      Throwable