Lines Matching refs:notifier

63  *A notifier (<tt>NamingEventNotifier</tt>) is a worker thread that is responsible
65 *Each notifier maintains its own list of listeners; these listeners have
83 *existing notifier that's already working on the request. If one is
84 *found, the listener is added to the notifier's list. If one is not found,
85 *a new notifier is created for the listener.
89 *corresponding notifier. If the notifier is found, the listener is removed
90 *from the notifier's list. If the listener is the last listener on the list,
91 *the notifier's thread is terminated and removed from this class's hashtable.
92 *Nothing happens if the notifier is not found.
96 *requested by their respective listeners. When a notifier gets sufficient
107 *the context's Connection thread. It is used by the notifier threads to
158 NamingEventNotifier notifier =
160 if (notifier == null) {
161 notifier = new NamingEventNotifier(this, ctx, args, l);
162 notifiers.put(args, notifier);
164 notifier.addNamingListener(l);
188 NamingEventNotifier notifier =
190 if (notifier == null) {
191 notifier = new NamingEventNotifier(this, ctx, args, l);
192 notifiers.put(args, notifier);
194 notifier.addNamingListener(l);
211 NamingEventNotifier notifier;
216 // If 'l' is notifier's only listener, remove notifier too.
218 notifier = (NamingEventNotifier)allnotifiers.nextElement();
219 if (notifier != null) {
221 System.err.println("EventSupport removing listener from notifier");
222 notifier.removeNamingListener(l);
223 if (!notifier.hasNamingListeners()) {
225 System.err.println("EventSupport stopping notifier");
226 notifier.stop();
227 notifiers.remove(notifier.info);
232 // Remove from list of unsolicited notifier
301 * Stops notifier threads that are collecting event data and