public void removeAttributePolling ( final String attributeName ) throws DevFailed { // jive sends value with lower case, so manage it final AttributeImpl attribute = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; attribute . resetPolling ( ) ; cacheManager . removeAttributePolling ( attribute ) ; pollAttributes . remove ( attributeName . toLowerCase ( Locale . ENGLISH ) ) ; if ( attribute . getName ( ) . equals ( DeviceImpl . STATE_NAME ) || attribute . getName ( ) . equals ( DeviceImpl . STATUS_NAME ) ) { // command is also set as polled final CommandImpl cmd = CommandGetter . getCommand ( attribute . getName ( ) , commandList ) ; cmd . resetPolling ( ) ; cacheManager . removeCommandPolling ( cmd ) ; } savePollingConfig ( ) ; }
Remove attribute polling