Uses of Interface
jakarta.servlet.AsyncListener
Package
Description
The jakarta.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container.
-
Uses of AsyncListener in jakarta.servlet
Modifier and TypeMethodDescription<T extends AsyncListener>
TAsyncContext.createListener
(Class<T> clazz) Instantiates the givenAsyncListener
class.Modifier and TypeMethodDescriptionvoid
AsyncContext.addListener
(AsyncListener listener) Registers the givenAsyncListener
with the most recent asynchronous cycle that was started by a call to one of theServletRequest.startAsync()
methods.void
AsyncContext.addListener
(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse) Registers the givenAsyncListener
with the most recent asynchronous cycle that was started by a call to one of theServletRequest.startAsync()
methods.