public synchronized void removeAll ( ) { for ( final AttributeCache cache : attributeCacheMap . values ( ) ) { cache . stopRefresh ( ) ; } attributeCacheMap . clear ( ) ; extTrigAttributeCacheMap . clear ( ) ; for ( final CommandCache cache : commandCacheMap . values ( ) ) { cache . stopRefresh ( ) ; } commandCacheMap . clear ( ) ; extTrigCommandCacheMap . clear ( ) ; if ( stateCache != null ) { stateCache . stopRefresh ( ) ; stateCache = null ; } if ( statusCache != null ) { statusCache . stopRefresh ( ) ; statusCache = null ; } cacheList . remove ( deviceName ) ; }
Remove all polling