javax.mail
Class EventQueue
java.lang.Object
|
+--javax.mail.EventQueue
- All Implemented Interfaces:
- Runnable
- class EventQueue
- extends Object
- implements Runnable
Package private class used by Store & Folder to dispatch events.
This class implements an event queue, and a dispatcher thread that
dequeues and dispatches events from the queue.
Pieces stolen from sun.misc.Queue.
Method Summary |
void |
enqueue(MailEvent event,
Vector vector)
Enqueue an event. |
void |
run()
Pull events off the queue and dispatch them. |
(package private) void |
stop()
Stop the dispatcher so we can be destroyed. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventQueue
public EventQueue()
enqueue
public void enqueue(MailEvent event,
Vector vector)
- Enqueue an event.
run
public void run()
- Pull events off the queue and dispatch them.
- Specified by:
run
in interface Runnable
stop
void stop()
- Stop the dispatcher so we can be destroyed.