public class Servlet3ContinuationProvider.Servlet3Continuation extends Object implements Continuation, javax.servlet.AsyncListener
| Constructor and Description |
|---|
Servlet3ContinuationProvider.Servlet3Continuation() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject()
Get arbitrary object associated with the continuation for context
|
boolean |
isNew()
Is this a newly created Continuation.
|
boolean |
isPending()
Get the pending status
|
boolean |
isResumed()
Get the resumed status
|
void |
onComplete(javax.servlet.AsyncEvent event) |
void |
onError(javax.servlet.AsyncEvent event) |
void |
onStartAsync(javax.servlet.AsyncEvent event) |
void |
onTimeout(javax.servlet.AsyncEvent event) |
void |
redispatch() |
void |
reset()
Reset the continuation
|
void |
resume()
Resume a suspended request
|
void |
setObject(Object o)
Sets arbitrary object associated with the continuation for context
|
boolean |
suspend(long timeout)
This method will suspend the request for the timeout or until resume is
called
|
public Servlet3ContinuationProvider.Servlet3Continuation()
public boolean suspend(long timeout)
Continuationsuspend in interface Continuationtimeout - A timeout of < 0 will cause an immediate return.
A timeout of 0 will wait indefinitely.public void redispatch()
public void resume()
Continuationresume in interface Continuationpublic void reset()
Continuationreset in interface Continuationpublic boolean isNew()
ContinuationisNew in interface Continuationpublic boolean isPending()
ContinuationisPending in interface Continuationpublic boolean isResumed()
ContinuationisResumed in interface Continuationpublic Object getObject()
ContinuationgetObject in interface Continuationpublic void setObject(Object o)
ContinuationsetObject in interface Continuationo - An arbitrary object to associate with the continuationpublic void onComplete(javax.servlet.AsyncEvent event)
throws IOException
onComplete in interface javax.servlet.AsyncListenerIOExceptionpublic void onError(javax.servlet.AsyncEvent event)
throws IOException
onError in interface javax.servlet.AsyncListenerIOExceptionpublic 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.AsyncListenerIOExceptionApache CXF