public class HighPriorityHandler extends HttpHandler
HttpHandler
we want to be processed as fast as possible.Constructor and Description |
---|
HighPriorityHandler(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, updatePaths
public HighPriorityHandler(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 HttpHandler
request
- 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
HttpHandler
service
in class HttpHandler
request
- The Request
response
- The Response
Exception
Copyright © 2014 Oracle Corporation. All rights reserved.