|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.OutputQueue
Manages a process queue for utterances. Utterances that are queued to a processor can be written via the post method. A processing thread can wait for an utterance to arrive via the pend method.
Constructor Summary | |
OutputQueue()
Creates a queue with the default size. |
|
OutputQueue(int size)
Creates an OutputQueue with the given size. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputQueue(int size)
size
- the size of the queuepublic OutputQueue()
Method Detail |
public void post(Utterance utterance)
utterance
- the utterance to post
java.lang.IllegalStateException
- if the queue is closedpublic void close()
public boolean isClosed()
public Utterance pend()
public void removeAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |