|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.jetty.Servlet3Continuation
public class Servlet3Continuation
Method Summary | |
---|---|
Object |
getObject()
Arbitrary object associated with the continuation for context. |
boolean |
isExpired()
Get the resumed status? |
boolean |
isNew()
Is this a newly created Continuation. |
boolean |
isPending()
Get the pending status? A continuation is pending while the handling of a call to suspend has not completed. |
boolean |
isResumed()
Get the resumed status? |
void |
reset()
Reset the continuation. |
void |
resume()
Resume the request. |
void |
setMutex(Object mutex)
|
void |
setObject(Object o)
Arbitrary object associated with the continuation for context. |
boolean |
suspend(long timeout)
Suspend handling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Object getObject()
Continuation
getObject
in interface Continuation
public boolean isExpired()
Continuation
isExpired
in interface Continuation
public boolean isNew()
Continuation
A newly created continuation has not had #getEvent(long)
called on it.
isNew
in interface Continuation
public boolean isPending()
Continuation
Continuation.suspend(long)
.
For non-blocking continuations, pending is true until a second call to Continuation.suspend(long)
or
a call to Continuation.reset()
, thus this method can be used to determine if a request is being
retried.
isPending
in interface Continuation
public boolean isResumed()
Continuation
isResumed
in interface Continuation
public void reset()
Continuation
reset
in interface Continuation
public void resume()
Continuation
resume
in interface Continuation
public void setMutex(Object mutex)
setMutex
in interface Continuation
public void setObject(Object o)
Continuation
setObject
in interface Continuation
o
- An arbitrary object to associate with the continuationpublic boolean suspend(long timeout)
Continuation
suspend
in interface Continuation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |