| java.lang.Object ti.swing.SwingQueue
SwingQueue | public class SwingQueue (Code) | | A queue implementation with a
SwingQueue.enqueue method and a blocking
SwingQueue.dequeue method that is safe to call from the AWT event dispatch
thread.
author: Rob Clark version: 0.1 |
Constructor Summary | |
public | SwingQueue() Class Constructor. |
Method Summary | |
public Object | dequeue() Dequeue item from queue, blocking until object is enqueued if the queue
is currently empty. | public void | enqueue(Object obj) Enqueue, potentially unblocking any threads that have called the
SwingQueue.dequeue method. |
SwingQueue | public SwingQueue()(Code) | | Class Constructor.
|
dequeue | public Object dequeue()(Code) | | Dequeue item from queue, blocking until object is enqueued if the queue
is currently empty. If multiple threads call this method it is not
defined which one will dequeue an entry first. It is guaranteed that
objects will be dequeued in the same order they are enqueued.
the dequeued object See Also: SwingQueue.enqueue |
|
|