|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.util.ajax.WaitingContinuation
public class WaitingContinuation
| Constructor Summary | |
|---|---|
WaitingContinuation()
|
|
WaitingContinuation(java.lang.Object mutex)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getMutex()
|
java.lang.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(java.lang.Object mutex)
|
void |
setObject(java.lang.Object object)
Arbitrary object associated with the continuation for context. |
boolean |
suspend(long timeout)
Suspend handling. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WaitingContinuation()
public WaitingContinuation(java.lang.Object mutex)
| Method Detail |
|---|
public void resume()
Continuation
resume in interface Continuationpublic void reset()
Continuation
reset in interface Continuationpublic boolean isNew()
Continuation
A newly created continuation has not had #getEvent(long) called on it.
isNew in interface Continuationpublic boolean suspend(long timeout)
Continuation
suspend in interface Continuationpublic boolean isPending()
ContinuationContinuation.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 Continuationpublic boolean isResumed()
Continuation
isResumed in interface Continuationpublic boolean isExpired()
Continuation
isExpired in interface Continuationpublic java.lang.Object getObject()
Continuation
getObject in interface Continuationpublic void setObject(java.lang.Object object)
Continuation
setObject in interface Continuationobject - An arbitrary object to associate with the continuationpublic java.lang.Object getMutex()
public void setMutex(java.lang.Object mutex)
setMutex in interface Continuationpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||