public class BlockingQueue
extends java.lang.Object
ThreadPool
Modifier and Type | Class and Description |
---|---|
static class |
BlockingQueue.Closed |
Constructor and Description |
---|
BlockingQueue() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
consumerCount() |
int |
consumerDeficit() |
java.lang.Object |
dequeue() |
java.lang.Object |
dequeue(long timeout) |
void |
enqueue(java.lang.Object o) |
java.util.LinkedList |
getQueue() |
int |
pending() |
boolean |
ready() |
void |
requeue(java.lang.Object o) |
void |
setQueue(java.util.LinkedList queue) |
public void enqueue(java.lang.Object o) throws BlockingQueue.Closed
BlockingQueue.Closed
public void requeue(java.lang.Object o) throws BlockingQueue.Closed
BlockingQueue.Closed
public java.lang.Object dequeue() throws java.lang.InterruptedException, BlockingQueue.Closed
java.lang.InterruptedException
BlockingQueue.Closed
public java.lang.Object dequeue(long timeout) throws java.lang.InterruptedException, BlockingQueue.Closed
java.lang.InterruptedException
BlockingQueue.Closed
public void close()
public int consumerCount()
public int consumerDeficit()
public boolean ready()
public int pending()
public java.util.LinkedList getQueue()
public void setQueue(java.util.LinkedList queue)