public class OutputQueue
extends java.lang.Object
| Constructor and Description |
|---|
OutputQueue()
Creates a queue with the default size.
|
OutputQueue(int size)
Creates an OutputQueue with the given size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the queue.
|
boolean |
isClosed()
Determines if the queue is closed.
|
Utterance |
pend()
Blocks until there is an utterance in the queue.
|
void |
post(Utterance utterance)
Posts the given utterance to the queue.
|
void |
removeAll()
Removes all items from this OutputQueue.
|
public OutputQueue(int size)
size - the size of the queuepublic OutputQueue()
public void post(Utterance utterance)
utterance - the utterance to postjava.lang.IllegalStateException - if the queue is closedpublic void close()
public boolean isClosed()
public Utterance pend()
public void removeAll()