Class HighPriorityHandler

java.lang.Object
org.glassfish.grizzly.http.server.HttpHandler
org.glassfish.grizzly.samples.httpserver.priorities.HighPriorityHandler

public class HighPriorityHandler extends org.glassfish.grizzly.http.server.HttpHandler
The high-priority HttpHandler we want to be processed as fast as possible.
Author:
Alexey Stashok
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.glassfish.grizzly.http.server.RequestExecutorProvider
     
    void
    service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response)
     

    Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler

    destroy, getErrorPageGenerator, getName, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HighPriorityHandler

      public HighPriorityHandler(ExecutorService threadPool)
  • Method Details

    • getRequestExecutorProvider

      public org.glassfish.grizzly.http.server.RequestExecutorProvider getRequestExecutorProvider()
      Overrides:
      getRequestExecutorProvider in class org.glassfish.grizzly.http.server.HttpHandler
      Returns:
      the RequestExecutorProvider to be used to call service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).
    • service

      public void service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response) throws Exception
      Specified by:
      service in class org.glassfish.grizzly.http.server.HttpHandler
      Throws:
      Exception