public int getPollingPeriod ( final String polledObject ) throws DevFailed { try { return AttributeGetterSetter . getAttribute ( polledObject , device . getAttributeList ( ) ) . getPollingPeriod ( ) ; } catch ( final DevFailed e ) { return device . getCommand ( polledObject ) . getPollingPeriod ( ) ; } }
Get polling period of an attribute or a command