private synchronized void handleEvent ( final StatusCompleteEvent event ) { for ( final Peer peer : this . peerList ) { peer . endSweep ( ) ; } PeerMonitor . logger . debug ( "Channel Mark and Sweep complete" ) ; //$NON-NLS-1$ }
We receive the StatusComplete event once the Mark and Sweep channel operation has completed . We now call endSweep which will remove any channels that were not marked during the operation .