public void transferListeners ( CoherentManagerEventQueue eventQueue ) { synchronized ( this . listeners ) { synchronized ( eventQueue . listeners ) { Iterator < FilteredManagerListenerWrapper > itr = eventQueue . listeners . iterator ( ) ; while ( itr . hasNext ( ) ) { FilteredManagerListenerWrapper listener = itr . next ( ) ; this . addListener ( listener . _listener ) ; } eventQueue . listeners . clear ( ) ; } } }
transfers the listeners from one queue to another .