public class RequestHolder extends Object
| Constructor and Description |
|---|
RequestHolder() |
| Modifier and Type | Method and Description |
|---|---|
<T> int |
getRequestCount(Class<T> clazz)
Gets the count of requests for the specified type.
|
<T> T |
peekFromEndWithOffset(Class<T> clazz,
int offset)
Gets a request from the holder (from the end of the queu, i.e.
|
<T> T |
peekLastRequest(Class<T> clazz)
Gets a request from the holder (from the end of the queu, i.e.
|
<T> T |
peekRequest(Class<T> clazz)
Gets a request from the holder (from the start at the queue, i.e.
|
<T> T |
pollLastRequest(Class<T> clazz)
Gets the last request on the queue, i.e.
|
<T> T |
pollRequest(Class<T> clazz)
Polls a request from the holder (from the start at the queue, i.e.
|
<T> void |
putRequest(Class<T> clazz,
T req)
Puts a request to the holder (at the end of the queue).
|
public <T> void putRequest(Class<T> clazz, T req)
clazz - Type of the requestreq - Requestpublic <T> T pollRequest(Class<T> clazz)
Removes the request from the queue.
clazz - Type of the requestpublic <T> T peekRequest(Class<T> clazz)
clazz - Type of the requestpublic <T> T pollLastRequest(Class<T> clazz)
Removes all other requests.
clazz - public <T> T peekLastRequest(Class<T> clazz)
clazz - Type of the requestpublic <T> T peekFromEndWithOffset(Class<T> clazz, int offset)
clazz - Type of the requestpublic <T> int getRequestCount(Class<T> clazz)
clazz - Copyright © 2015. All rights reserved.