| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Condition | |
| private static final boolean | |
| private EventQueue. | |
| private final ReentrantLock | |
| private Thread | |
| private EventQueue. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private EventQueue. | |
| pack-priv void | enqueue(EventObject
Either a event, Vector<NamingListener> NamingExceptionEvent or a subclass
of NamingEvent or
UnsolicitedNotificationEvent.
If it is a subclass of NamingEvent, all listeners must implement
the corresponding subinterface of NamingListener.
For example, for an ObjectAddedEvent, all listeners must
implement the ObjectAddedListener interface.
The current implementation does not check this before dispatching
the event.
If the event is a NamingExceptionEvent, then all listeners
are notified.List of NamingListeners that will be notified of event. vector)Enqueue an event. |
| public void | |
| pack-priv void |
| condition | back to summary |
|---|---|
| private final Condition condition | |
| debug | back to summary |
|---|---|
| private static final boolean debug | |
| head | back to summary |
|---|---|
| private EventQueue. | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| qThread | back to summary |
|---|---|
| private Thread qThread | |
| tail | back to summary |
|---|---|
| private EventQueue. | |
| EventQueue | back to summary |
|---|---|
| pack-priv EventQueue() | |
| dequeue | back to summary |
|---|---|
| private EventQueue. Dequeue the oldest object on the queue. Used only by the run() method.
| |
| enqueue | back to summary |
|---|---|
| pack-priv void enqueue(EventObject event, Vector<NamingListener> vector) Enqueue an event.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Pull events off the queue and dispatch them.
| |
| stop | back to summary |
|---|---|
| pack-priv void stop() Stop the dispatcher so we can be destroyed. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv EventObject | |
| pack-priv EventQueue. | |
| pack-priv EventQueue. | |
| pack-priv Vector |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| event | back to summary |
|---|---|
| pack-priv EventObject event | |
| next | back to summary |
|---|---|
| pack-priv EventQueue. | |
| prev | back to summary |
|---|---|
| pack-priv EventQueue. | |
| vector | back to summary |
|---|---|
| pack-priv Vector<NamingListener> vector | |
| QueueElement | back to summary |
|---|---|
| pack-priv QueueElement(EventObject event, Vector<NamingListener> vector) | |