public synchronized void removeAttributePolling ( final AttributeImpl attr ) throws DevFailed { if ( attributeCacheMap . containsKey ( attr ) ) { final AttributeCache cache = attributeCacheMap . get ( attr ) ; cache . stopRefresh ( ) ; attributeCacheMap . remove ( attr ) ; } else if ( extTrigAttributeCacheMap . containsKey ( attr ) ) { extTrigAttributeCacheMap . remove ( attr ) ; } else if ( attr . getName ( ) . equalsIgnoreCase ( DeviceImpl . STATE_NAME ) && stateCache != null ) { stateCache . stopRefresh ( ) ; stateCache = null ; } else if ( attr . getName ( ) . equalsIgnoreCase ( DeviceImpl . STATUS_NAME ) && statusCache != null ) { statusCache . stopRefresh ( ) ; statusCache = null ; } }
Remove polling of an attribute