Class AbstractHttpTransport.LongPollScheduler

    • Method Summary

      Modifier and Type Method Description
      void cancel()
      Invoked when the transport wants to cancel scheduled operations that will trigger when the /meta/connect timeout fires.
      void destroy()
      Invoked when the transport wants to abort communication.
      protected abstract void dispatch​(boolean timeout)  
      AbstractHttpTransport.Context getContext()  
      ServerMessage.Mutable getMessage()  
      Promise<java.lang.Void> getPromise()  
      void onComplete​(javax.servlet.AsyncEvent asyncEvent)  
      void onError​(javax.servlet.AsyncEvent event)  
      void onStartAsync​(javax.servlet.AsyncEvent event)  
      void onTimeout​(javax.servlet.AsyncEvent event)  
      void run()  
      void schedule()
      Invoked when the transport wants to send queued messages, and possibly a /meta/connect reply.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPromise

        public Promise<java.lang.Void> getPromise()
      • run

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

        public void onStartAsync​(javax.servlet.AsyncEvent event)
        Specified by:
        onStartAsync in interface javax.servlet.AsyncListener
      • onTimeout

        public void onTimeout​(javax.servlet.AsyncEvent event)
        Specified by:
        onTimeout in interface javax.servlet.AsyncListener
      • onComplete

        public void onComplete​(javax.servlet.AsyncEvent asyncEvent)
        Specified by:
        onComplete in interface javax.servlet.AsyncListener
      • onError

        public void onError​(javax.servlet.AsyncEvent event)
        Specified by:
        onError in interface javax.servlet.AsyncListener
      • dispatch

        protected abstract void dispatch​(boolean timeout)