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:
-
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
ManagedExecutorService can create a contextualized copy of an unmanaged CompletableFuture.void
ManagedExecutorService creates an incomplete CompletableFuture to which dependent stages can be chained.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
-
ManagedExecutorDefinitionOnEJBServlet
public ManagedExecutorDefinitionOnEJBServlet()
-
-
Method Details
-
testIncompleteFutureEJB
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
ManagedExecutorService can create a contextualized copy of an unmanaged CompletableFuture.- Throws:
Throwable
-