|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.util.Queue
org.web3d.util.BlockingQueue
public class BlockingQueue
Blocking 'First In First Out' (FIFO) queue.
Based on the simple Queue but can be used concurrently by seperate threads. If there are not elements in the queue, getNext() will block until it is not empty.
Taken from the VLC common code library http://www.vlc.com.au/common/ This softare is released under the GNU LGPL
Queue| Constructor Summary | |
|---|---|
BlockingQueue()
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object o)
Add an object to the end of the queue. |
void |
clear()
Clear the queue of items. |
java.lang.Object |
getNext()
Return the next element from the front of the queue, and remove it from the queue. |
boolean |
hasNext()
Check if queue has more objects. |
java.lang.Object |
peekNext()
Get the next element from the front of the queue. |
void |
purge()
Remove all elements from queue. |
int |
size()
Return the size of the queue. |
| Methods inherited from class org.web3d.util.Queue |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingQueue()
| Method Detail |
|---|
public void add(java.lang.Object o)
add in class Queueo - Object to add.public java.lang.Object getNext()
getNext in class Queuepublic java.lang.Object peekNext()
peekNext in class Queuepublic boolean hasNext()
hasNext in class Queuepublic int size()
size in class Queuepublic void purge()
public void clear()
clear in class Queue
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||