protected abstract class AbstractHttpTransport.LongPollScheduler extends Object implements Runnable, AbstractHttpTransport.HttpScheduler, javax.servlet.AsyncListener
AbstractServerTransport.Scheduler.None
Modifier | Constructor and Description |
---|---|
protected |
LongPollScheduler(AbstractHttpTransport.Context context,
Promise<Void> promise,
ServerMessage.Mutable message,
long timeout) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Throwable cause)
Invoked when the transport wants to cancel with the given
cause 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() |
long |
getMetaConnectCycle() |
Promise<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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel
protected LongPollScheduler(AbstractHttpTransport.Context context, Promise<Void> promise, ServerMessage.Mutable message, long timeout)
public AbstractHttpTransport.Context getContext()
public ServerMessage.Mutable getMessage()
getMessage
in interface AbstractServerTransport.Scheduler
public long getMetaConnectCycle()
getMetaConnectCycle
in interface AbstractServerTransport.Scheduler
/meta/connect
s.public void schedule()
AbstractServerTransport.Scheduler
schedule
in interface AbstractServerTransport.Scheduler
public void cancel(Throwable cause)
AbstractServerTransport.Scheduler
cancel
in interface AbstractServerTransport.Scheduler
public void destroy()
AbstractServerTransport.Scheduler
destroy
in interface AbstractServerTransport.Scheduler
public void onStartAsync(javax.servlet.AsyncEvent event)
onStartAsync
in interface javax.servlet.AsyncListener
public void onTimeout(javax.servlet.AsyncEvent event)
onTimeout
in interface javax.servlet.AsyncListener
public void onComplete(javax.servlet.AsyncEvent asyncEvent) throws IOException
onComplete
in interface javax.servlet.AsyncListener
IOException
public void onError(javax.servlet.AsyncEvent event)
onError
in interface javax.servlet.AsyncListener
protected abstract void dispatch(boolean timeout)
Copyright © 2008–2024 The CometD Project. All rights reserved.