Class AbstractHttpTransport.LongPollScheduler

    • Constructor Detail

      • LongPollScheduler

        protected LongPollScheduler​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    javax.servlet.AsyncContext asyncContext,
                                    ServerSessionImpl session,
                                    ServerMessage.Mutable reply,
                                    long timeout)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • onStartAsync

        public void onStartAsync​(javax.servlet.AsyncEvent event)
                          throws java.io.IOException
        Specified by:
        onStartAsync in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onTimeout

        public void onTimeout​(javax.servlet.AsyncEvent event)
                       throws java.io.IOException
        Specified by:
        onTimeout in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onComplete

        public void onComplete​(javax.servlet.AsyncEvent asyncEvent)
                        throws java.io.IOException
        Specified by:
        onComplete in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onError

        public void onError​(javax.servlet.AsyncEvent event)
                     throws java.io.IOException
        Specified by:
        onError in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • dispatch

        protected abstract void dispatch()
      • error

        protected void error​(int code)