|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectti.swing.SwingQueue
public class SwingQueue
A queue implementation with a enqueue(java.lang.Object) method and a blocking
dequeue() method that is safe to call from the AWT event dispatch
thread.
| Constructor Summary | |
|---|---|
SwingQueue()
Class Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
dequeue()
Dequeue item from queue, blocking until object is enqueued if the queue is currently empty. |
void |
enqueue(java.lang.Object obj)
Enqueue, potentially unblocking any threads that have called the dequeue() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingQueue()
| Method Detail |
|---|
public void enqueue(java.lang.Object obj)
dequeue() method.
obj - the object to enqueuedequeue()public java.lang.Object dequeue()
enqueue(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||