|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.impl.RequestQueueImpl
public class RequestQueueImpl
An implementation of RequestQueue
behaving as
a queue of AuRequest
.
There is one queue for each desktop.
Implementation Note: Unlike only of desktop members, this class must be thread-safe.
Constructor Summary | |
---|---|
RequestQueueImpl()
|
Method Summary | |
---|---|
void |
addPerfRequestId(java.lang.String requestId)
Adds a request ID that uniquely identifies a request for performance measurement PerformanceMeter . |
void |
addRequests(java.util.Collection<AuRequest> requests)
Adds a list of requests to the queue. |
java.util.Collection<java.lang.String> |
clearPerfRequestIds()
Clears all request IDs that were added by RequestQueue.addPerfRequestId(java.lang.String)
for performance measurement. |
boolean |
isEmpty()
Returns if no more request available in the queue. |
AuRequest |
nextRequest()
Returns the next request, or null if no more request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestQueueImpl()
Method Detail |
---|
public void addPerfRequestId(java.lang.String requestId)
RequestQueue
PerformanceMeter
.
addPerfRequestId
in interface RequestQueue
requestId
- the request ID (never null)public java.util.Collection<java.lang.String> clearPerfRequestIds()
RequestQueue
RequestQueue.addPerfRequestId(java.lang.String)
for performance measurement.
It is usually called after all requests are processed
(RequestQueue.isEmpty()
is true).
clearPerfRequestIds
in interface RequestQueue
RequestQueue.addPerfRequestId(java.lang.String)
,
or null if no request ID was added.public boolean isEmpty()
RequestQueue
isEmpty
in interface RequestQueue
public AuRequest nextRequest()
RequestQueue
nextRequest
in interface RequestQueue
public void addRequests(java.util.Collection<AuRequest> requests)
RequestQueue
AuRequest.activate()
will be called before adding
to queue. If the component is not found or does not belong to
the current execution, it will be ignored.
addRequests
in interface RequestQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |