|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.dwrp.JettyContinuationSleeper
public class JettyContinuationSleeper
A Sleeper that works with Jetty Continuations
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_JETTY_CONDUIT
We remember the notify conduit so we can reuse it |
| Constructor Summary | |
|---|---|
JettyContinuationSleeper(javax.servlet.http.HttpServletRequest request)
|
|
| Method Summary | |
|---|---|
void |
goToSleep(java.lang.Runnable awakening)
'halt' the current execution in some way. |
static boolean |
isRestart(javax.servlet.http.HttpServletRequest request)
Is this a restarted continuation? |
static void |
restart(javax.servlet.http.HttpServletRequest request)
Act on a restarted continuation by executing the onAwakening action |
void |
wakeUp()
This method should attempt to resume the execution. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_JETTY_CONDUIT
| Constructor Detail |
|---|
public JettyContinuationSleeper(javax.servlet.http.HttpServletRequest request)
request - The request into which we store this as an attribute| Method Detail |
|---|
public static boolean isRestart(javax.servlet.http.HttpServletRequest request)
request - The request on which a Sleeper might be stored
public static void restart(javax.servlet.http.HttpServletRequest request)
request - The request on which the Sleeper is storedpublic void goToSleep(java.lang.Runnable awakening)
Runnable so the system can schedule it at an
appropriate time.
awakening - The action to take when wakeUp() is calledpublic void wakeUp()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||