public class NoSupportAsyncWebRequest extends ServletWebRequest implements AsyncWebRequest
AsyncWebRequest to use when there is no underlying async support.DESTRUCTION_CALLBACK_NAME_PREFIXrequestDestructionCallbacksREFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION| Constructor and Description |
|---|
NoSupportAsyncWebRequest(HttpServletRequest request,
HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletionHandler(Runnable runnable)
Add a handle to invoke when request processing completes.
|
void |
addTimeoutHandler(Runnable runnable)
Add a handler to invoke when concurrent handling has timed out.
|
void |
dispatch()
Dispatch the request to the container in order to resume processing after
concurrent execution in an application thread.
|
boolean |
isAsyncComplete()
Whether asynchronous processing has completed.
|
boolean |
isAsyncStarted()
Whether the request is in async mode following a call to
AsyncWebRequest.startAsync(). |
void |
setTimeout(Long timeout)
Set the time required for concurrent handling to complete.
|
void |
startAsync()
Mark the start of asynchronous request processing so that when the main
processing thread exits, the response remains open for further processing
in another thread.
|
checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getHttpMethod, getLocale, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getResponse, getUserPrincipal, isNotModified, isSecure, isUserInRole, toStringgetAttribute, getAttributeNames, getRequest, getSession, getSessionId, getSessionMutex, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributesisRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompletedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNativeRequest, getNativeRequest, getNativeResponse, getNativeResponsecheckNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getLocale, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRolegetAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttributepublic NoSupportAsyncWebRequest(HttpServletRequest request, HttpServletResponse response)
public void addCompletionHandler(Runnable runnable)
AsyncWebRequestaddCompletionHandler in interface AsyncWebRequestpublic void setTimeout(Long timeout)
AsyncWebRequestAsyncWebRequest.isAsyncStarted() is true.setTimeout in interface AsyncWebRequesttimeout - amount of time in milliseconds; null means no
timeout, i.e. rely on the default timeout of the container.public void addTimeoutHandler(Runnable runnable)
AsyncWebRequestaddTimeoutHandler in interface AsyncWebRequestpublic boolean isAsyncStarted()
AsyncWebRequestAsyncWebRequest.startAsync().
Returns "false" if asynchronous processing never started, has completed,
or the request was dispatched for further processing.isAsyncStarted in interface AsyncWebRequestpublic void startAsync()
AsyncWebRequeststartAsync in interface AsyncWebRequestpublic boolean isAsyncComplete()
AsyncWebRequestisAsyncComplete in interface AsyncWebRequestpublic void dispatch()
AsyncWebRequestdispatch in interface AsyncWebRequest