| |
|
| java.lang.Object org.openide.util.Queue
Queue | public class Queue extends Object (Code) | | Queue of objects. When there is no object in the queue the process
is suspended till some arrives.
Implementation appears to be LIFO.
author: Jaroslav Tulachjava.util.concurrent.BlockingQueue |
Method Summary | |
public synchronized T | get() Gets an object from the queue. | public synchronized void | put(T o) Adds new item. |
get | public synchronized T get()(Code) | | Gets an object from the queue. If there is no such object the
thread is suspended until some object arrives
object from the queue |
put | public synchronized void put(T o)(Code) | | Adds new item.
Parameters: o - object to add |
|
|
|