Class AbstractHttpTransport.LongPollScheduler

java.lang.Object
org.cometd.server.transport.AbstractHttpTransport.LongPollScheduler
All Implemented Interfaces:
java.lang.Runnable, java.util.EventListener, javax.servlet.AsyncListener, AbstractServerTransport.Scheduler, AbstractHttpTransport.HttpScheduler
Direct Known Subclasses:
AbstractStreamHttpTransport.DispatchingLongPollScheduler
Enclosing class:
AbstractHttpTransport

protected abstract class AbstractHttpTransport.LongPollScheduler
extends java.lang.Object
implements java.lang.Runnable, AbstractHttpTransport.HttpScheduler, javax.servlet.AsyncListener
  • 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

    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