|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asyncobjects.util.RequestQueue
public class RequestQueue
This utiliy class represent request queue. This class should be never exposed
to clients outside of component.
The class has also sleep / awake functionality that is used to suspend
current operation until some external condition is fullfilled (for example in
BytePipe pipe's ByteInput waits until someone writes to ByteOuput using this
method).
Note that it is not recommeded to use this class direclty to demarkate
requests. Use Serialized
utility class instead.
Serialized
Constructor Summary | |
---|---|
RequestQueue()
|
Method Summary | |
---|---|
void |
awake()
this method awake latest request if there is some need to do so |
Promise<Void> |
awaken()
Sleep until explicitly resumed. |
void |
endRequest()
End current required |
Promise<Void> |
startRequest()
start performing request, usually this method is called after noPending or ready. |
boolean |
tryStartRequest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestQueue()
Method Detail |
---|
public boolean tryStartRequest()
public Promise<Void> startRequest()
public void endRequest()
public Promise<Void> awaken()
public void awake()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |