| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | EventQueue.QueueElement
A "struct" to put on the queue. |
| pack-priv static class | EventQueue.TerminatorEvent
A special event that causes the queue processing task to terminate. |
| Modifier and Type | Field and Description |
|---|---|
| private static WeakHashMap | |
| private Executor | |
| private volatile BlockingQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| pack-priv static synchronized EventQueue | |
| public void | |
| pack-priv synchronized void |
| appq | back to summary |
|---|---|
| private static WeakHashMap<ClassLoader, EventQueue> appq | |
| executor | back to summary |
|---|---|
| private Executor executor | |
| q | back to summary |
|---|---|
| private volatile BlockingQueue<EventQueue. | |
| EventQueue | back to summary |
|---|---|
| pack-priv EventQueue(Executor ex) Construct an EventQueue using the specified Executor. If the Executor is null, threads will be created as needed. | |
| enqueue | back to summary |
|---|---|
| pack-priv synchronized void enqueue(MailEvent event, Vector<? extends EventListener> vector) Enqueue an event. | |
| getApplicationEventQueue | back to summary |
|---|---|
| pack-priv static synchronized EventQueue getApplicationEventQueue(Executor ex) Create (if necessary) an application-scoped event queue. Application scoping is based on the thread's context class loader. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Pull events off the queue and dispatch them.
| |
| terminateQueue | back to summary |
|---|---|
| pack-priv synchronized void terminateQueue() Terminate the task running the queue, but only if there is a queue. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv MailEvent | |
| pack-priv Vector |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| event | back to summary |
|---|---|
| pack-priv MailEvent event | |
| vector | back to summary |
|---|---|
| pack-priv Vector<? extends EventListener> vector | |
| QueueElement | back to summary |
|---|---|
| pack-priv QueueElement(MailEvent event, Vector<? extends EventListener> vector) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispatch(Object
the listener to invoke on listener)Implements abstract javax. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TerminatorEvent | back to summary |
|---|---|
| pack-priv TerminatorEvent() | |
| dispatch | back to summary |
|---|---|
| public void dispatch(Object listener) Implements abstract javax. Doc from javax. This method invokes the appropriate method on a listener for this event. Subclasses provide the implementation. | |