--- old/src/java.naming/share/classes/com/sun/jndi/ldap/EventSupport.java 2019-03-13 14:48:49.000000000 -0400 +++ new/src/java.naming/share/classes/com/sun/jndi/ldap/EventSupport.java 2019-03-13 14:48:49.000000000 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -78,20 +78,20 @@ *When a context no longer needs this EventSupport, it should invoke *cleanup() on it. *

- *

Registration

+ *

Registration

*When a registration request is made, this class attempts to find an *existing notifier that's already working on the request. If one is *found, the listener is added to the notifier's list. If one is not found, *a new notifier is created for the listener. * - *

Deregistration

+ *

Deregistration

*When a deregistration request is made, this class attempts to find its *corresponding notifier. If the notifier is found, the listener is removed *from the notifier's list. If the listener is the last listener on the list, *the notifier's thread is terminated and removed from this class's hashtable. *Nothing happens if the notifier is not found. * - *

Event Dispatching

+ *

Event Dispatching

*The notifiers are responsible for gather information for generating events *requested by their respective listeners. When a notifier gets sufficient *information to generate an event, it creates invokes the @@ -101,7 +101,7 @@ *This class maintains an event queue and a dispatching thread that dequeues *events from the queue and dispatches them to the listeners. * - *

Synchronization

+ *

Synchronization

*This class is used by the main thread (LdapCtx) to add/remove listeners. *It is also used asynchronously by NamingEventNotifiers threads and *the context's Connection thread. It is used by the notifier threads to