protected abstract class AbstractHttpTransport.LongPollScheduler extends Object implements Runnable, AbstractHttpTransport.HttpScheduler, javax.servlet.AsyncListener
| Modifier | Constructor and Description |
|---|---|
protected |
LongPollScheduler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext asyncContext,
ServerSessionImpl session,
ServerMessage.Mutable reply,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
protected abstract void |
dispatch() |
protected void |
error(int code) |
javax.servlet.AsyncContext |
getAsyncContext() |
ServerMessage.Mutable |
getMetaConnectReply() |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
ServerSessionImpl |
getServerSession() |
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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext asyncContext,
ServerSessionImpl session,
ServerMessage.Mutable reply,
long timeout)
public javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface AbstractHttpTransport.HttpSchedulerpublic javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface AbstractHttpTransport.HttpSchedulerpublic javax.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface AbstractHttpTransport.HttpSchedulerpublic ServerSessionImpl getServerSession()
public ServerMessage.Mutable getMetaConnectReply()
public void schedule()
schedule in interface AbstractServerTransport.Schedulerpublic void cancel()
cancel in interface AbstractServerTransport.Schedulerpublic void onStartAsync(javax.servlet.AsyncEvent event)
throws IOException
onStartAsync in interface javax.servlet.AsyncListenerIOExceptionpublic void onTimeout(javax.servlet.AsyncEvent event)
throws IOException
onTimeout in interface javax.servlet.AsyncListenerIOExceptionpublic void onComplete(javax.servlet.AsyncEvent asyncEvent)
throws IOException
onComplete in interface javax.servlet.AsyncListenerIOExceptionpublic void onError(javax.servlet.AsyncEvent event)
throws IOException
onError in interface javax.servlet.AsyncListenerIOExceptionprotected abstract void dispatch()
protected void error(int code)
Copyright © 2008–2017 The CometD Project. All rights reserved.