public class LowPriorityHandler extends HttpHandler
HttpHandler executing long lasting task.| Constructor and Description |
|---|
LowPriorityHandler(ExecutorService threadPool) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutorService |
getThreadPool(Request request)
Returns the
ExecutorService to be used to
call service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response). |
void |
service(Request request,
Response response)
This method should contain the logic for any HTTP extension to the
Grizzly HTTP web server.
|
destroy, getErrorPageGenerator, getName, getRequestURIEncoding, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic LowPriorityHandler(ExecutorService threadPool)
protected ExecutorService getThreadPool(Request request)
ExecutorService to be used to
call service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).getThreadPool in class HttpHandlerrequest - the Request to be processed.ExecutorService to process
passed Request. The null return value means process in
current thread.public void service(Request request, Response response) throws Exception
HttpHandlerservice in class HttpHandlerrequest - The Requestresponse - The ResponseExceptionCopyright © 2013 Oracle Corporation. All rights reserved.