|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
add(Request request)
Adds the given request to the end of the queue |
void |
addRequestQueueEventListener(RequestQueueEventListener listener)
|
void |
addToFront(Request request)
Adds the given request to the front of the queue before all other request already in the queue |
void |
clear()
|
Request |
getOldest()
Returns the oldest request from the queue or null if the queue is empty Do not remove it from the queue |
Request |
getOldest(RequestFilter requestFilter)
Returns the oldest request that matches the criteria defined by the given filter Do not remove it from the request line |
Request |
getOldest(java.lang.String methodName)
Returns the oldest request whose method name is s or null if no match Do not remove it from the queue |
Request |
getYoungest()
Returns the youngest request from the queue or null if the queue is empty Do not remove it from the request line |
Request |
getYoungest(RequestFilter requestFilter)
Returns the youngest request that matches the criteria defined by the given filter Do not remove it from the request line |
Request |
getYoungest(java.lang.String methodName)
Returns the youngest request whose method name is s or null if no match Do not remove it from the request line |
boolean |
hasRequest(java.lang.String s)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
Returns an iterator over all the requests in the request queue. |
void |
processRequests(RequestProcessor processor,
Body body)
Processes all requests in the queue using the given RequestProcessor. |
Request |
removeOldest()
Removes the oldest request from the queue and returns it Null is returned is the queue is empty |
Request |
removeOldest(RequestFilter requestFilter)
Removes the oldest request that matches the criteria defined by the given filter Null is returned is no match |
Request |
removeOldest(java.lang.String methodName)
Removes the oldest request whose method name is s and returns it. |
void |
removeRequestQueueEventListener(RequestQueueEventListener listener)
|
Request |
removeYoungest()
Removes the youngest request from the queue and returns it Null is returned is the queue is empty |
Request |
removeYoungest(RequestFilter requestFilter)
Removes the youngest request that matches the criteria defined by the given filter Null is returned is no match |
Request |
removeYoungest(java.lang.String methodName)
Removes the youngest request whose method name is s and returns it. |
int |
size()
|
Method Detail |
public java.util.Iterator iterator()
public boolean isEmpty()
public int size()
public boolean hasRequest(java.lang.String s)
public void clear()
public Request getOldest()
public Request getOldest(java.lang.String methodName)
methodName
- the name of the method to look for
public Request getOldest(RequestFilter requestFilter)
requestFilter
- the filter accepting request on a given criteria
public Request removeOldest()
public Request removeOldest(java.lang.String methodName)
methodName
- the name of the method to look for
public Request removeOldest(RequestFilter requestFilter)
requestFilter
- the filter accepting request on a given criteria
public Request getYoungest()
public Request getYoungest(java.lang.String methodName)
methodName
- the name of the method to look for
public Request getYoungest(RequestFilter requestFilter)
requestFilter
- the filter accepting request on a given criteria
public Request removeYoungest()
public Request removeYoungest(java.lang.String methodName)
methodName
- the name of the method to look for
public Request removeYoungest(RequestFilter requestFilter)
requestFilter
- the filter accepting request on a given criteria
public void add(Request request)
request
- the request to addpublic void addToFront(Request request)
request
- the request to addpublic void processRequests(RequestProcessor processor, Body body)
processor
- the RequestProcessor to usebody
- the body that processes the requestspublic void addRequestQueueEventListener(RequestQueueEventListener listener)
public void removeRequestQueueEventListener(RequestQueueEventListener listener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |