public class RequestQueue<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.util.List<T> |
queue |
| Constructor and Description |
|---|
RequestQueue()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(T dd)
Add a request to the queue.
|
T |
getRequest()
Pull the next request off the queue, but wait if there is
nothing there.
|
public static final java.lang.String _rcsid
protected java.util.List<T> queue
public void addRequest(T dd)
dd - is the request.public T getRequest() throws java.lang.InterruptedException
java.lang.InterruptedException