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.HttpScheduler
public javax.servlet.http.HttpServletResponse getResponse()
getResponse
in interface AbstractHttpTransport.HttpScheduler
public javax.servlet.AsyncContext getAsyncContext()
getAsyncContext
in interface AbstractHttpTransport.HttpScheduler
public ServerSessionImpl getServerSession()
public ServerMessage.Mutable getMetaConnectReply()
public void schedule()
schedule
in interface AbstractServerTransport.Scheduler
public void cancel()
cancel
in interface AbstractServerTransport.Scheduler
public void onStartAsync(javax.servlet.AsyncEvent event) throws IOException
onStartAsync
in interface javax.servlet.AsyncListener
IOException
public void onTimeout(javax.servlet.AsyncEvent event) throws IOException
onTimeout
in interface javax.servlet.AsyncListener
IOException
public void onComplete(javax.servlet.AsyncEvent asyncEvent) throws IOException
onComplete
in interface javax.servlet.AsyncListener
IOException
public void onError(javax.servlet.AsyncEvent event) throws IOException
onError
in interface javax.servlet.AsyncListener
IOException
protected abstract void dispatch()
protected void error(int code)
Copyright © 2008–2017 The CometD Project. All rights reserved.