public void removeAll ( ) { LOGGER . debug ( "Removing {} reverse connections from subscription manager" , reverse . size ( ) ) ; Iterator < HomekitClientConnection > i = reverse . keySet ( ) . iterator ( ) ; while ( i . hasNext ( ) ) { HomekitClientConnection connection = i . next ( ) ; LOGGER . debug ( "Removing connection {}" , connection . hashCode ( ) ) ; removeConnection ( connection ) ; } LOGGER . debug ( "Subscription sizes are {} and {}" , reverse . size ( ) , subscriptions . size ( ) ) ; }
Remove all existing subscriptions