Class ManagedExecutorDefinitionOnEJBServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ee.jakarta.tck.concurrent.framework.TestServlet
ee.jakarta.tck.concurrent.spec.ManagedExecutorService.resourcedef.ManagedExecutorDefinitionOnEJBServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@WebServlet("/ManagedExecutorDefinitionOnEJBServlet") public class ManagedExecutorDefinitionOnEJBServlet extends TestServlet
See Also:
  • Constructor Details

    • ManagedExecutorDefinitionOnEJBServlet

      public ManagedExecutorDefinitionOnEJBServlet()
  • Method Details

    • testIncompleteFutureEJB

      public void testIncompleteFutureEJB() throws Throwable
      ManagedExecutorService creates an incomplete CompletableFuture to which dependent stages can be chained. The CompletableFuture can be completed from another thread lacking the same context, but the dependent stages all run with the thread context of the thread from which they were created, per ManagedExecutorDefinition config.
      Throws:
      Throwable
    • testCopyCompletableFutureEJB

      public void testCopyCompletableFutureEJB() throws Throwable
      ManagedExecutorService can create a contextualized copy of an unmanaged CompletableFuture.
      Throws:
      Throwable