Class AbstractHttpTransport.LongPollScheduler

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LongPollScheduler​(AbstractHttpTransport.Context context, org.cometd.bayeux.Promise<java.lang.Void> promise, org.cometd.bayeux.server.ServerMessage.Mutable message, long timeout)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      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()  
      org.cometd.bayeux.server.ServerMessage.Mutable getMessage()  
      org.cometd.bayeux.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
    • Constructor Detail

      • LongPollScheduler

        protected LongPollScheduler​(AbstractHttpTransport.Context context,
                                    org.cometd.bayeux.Promise<java.lang.Void> promise,
                                    org.cometd.bayeux.server.ServerMessage.Mutable message,
                                    long timeout)
    • Method Detail

      • getPromise

        public org.cometd.bayeux.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)
                        throws java.io.IOException
        Specified by:
        onComplete in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onError

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

        protected abstract void dispatch​(boolean timeout)