java.lang.Runnable
, java.util.EventListener
, javax.servlet.AsyncListener
, AbstractServerTransport.Scheduler
, AbstractHttpTransport.HttpScheduler
AbstractStreamHttpTransport.DispatchingLongPollScheduler
protected abstract class AbstractHttpTransport.LongPollScheduler extends java.lang.Object implements java.lang.Runnable, AbstractHttpTransport.HttpScheduler, javax.servlet.AsyncListener
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) |
Modifier and Type | Method | Description |
---|---|---|
void |
cancel() |
|
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() |
protected LongPollScheduler(AbstractHttpTransport.Context context, org.cometd.bayeux.Promise<java.lang.Void> promise, org.cometd.bayeux.server.ServerMessage.Mutable message, long timeout)
public AbstractHttpTransport.Context getContext()
public org.cometd.bayeux.Promise<java.lang.Void> getPromise()
public org.cometd.bayeux.server.ServerMessage.Mutable getMessage()
getMessage
in interface AbstractHttpTransport.HttpScheduler
public void schedule()
schedule
in interface AbstractServerTransport.Scheduler
public void cancel()
cancel
in interface AbstractServerTransport.Scheduler
public void run()
run
in interface java.lang.Runnable
public void onStartAsync(javax.servlet.AsyncEvent event) throws java.io.IOException
onStartAsync
in interface javax.servlet.AsyncListener
java.io.IOException
public void onTimeout(javax.servlet.AsyncEvent event) throws java.io.IOException
onTimeout
in interface javax.servlet.AsyncListener
java.io.IOException
public void onComplete(javax.servlet.AsyncEvent asyncEvent) throws java.io.IOException
onComplete
in interface javax.servlet.AsyncListener
java.io.IOException
public void onError(javax.servlet.AsyncEvent event) throws java.io.IOException
onError
in interface javax.servlet.AsyncListener
java.io.IOException
protected abstract void dispatch(boolean timeout)
Copyright © 2008–2017 The CometD Project. All rights reserved.