|
||||||||||
| 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
| Field Summary | |
|---|---|
(package private) Object |
_mutex
|
(package private) boolean |
_new
|
(package private) Object |
_object
|
(package private) boolean |
_pending
|
(package private) boolean |
_resumed
|
| Constructor Summary | |
|---|---|
WaitingContinuation()
|
|
WaitingContinuation(Object mutex)
|
|
| Method Summary | |
|---|---|
Object |
getMutex()
|
Object |
getObject()
Arbitrary object associated with the continuation for context. |
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. |
void |
resume()
Resume the request. |
void |
setMutex(Object mutex)
|
void |
setObject(Object object)
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 |
| Field Detail |
|---|
Object _mutex
Object _object
boolean _new
boolean _resumed
boolean _pending
| Constructor Detail |
|---|
public WaitingContinuation()
public WaitingContinuation(Object mutex)
| Method Detail |
|---|
public void resume()
Continuation
resume 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),
thus this method can be used to determine if a request is being retried.
isPending in interface Continuationpublic Object getObject()
Continuation
getObject in interface Continuationpublic void setObject(Object object)
Continuation
setObject in interface Continuationobject - An arbitrary object to associate with the continuationpublic Object getMutex()
public void setMutex(Object mutex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||