question: public boolean shouldUpdateAlerts ( ) { if ( alerts_lastUpdated == null ) { alerts_lastUpdated = Calendar . getInstance ( ) ; return true ; } Calendar updateTreshold = Calendar . getInstance ( ) ; updateTreshold . add ( Calendar . MINUTE , - 10 ) ; return alerts_lastUpdated . before ( updateTreshold ) ; }
target:  Returns true if we should retrieve nodes information We consider alerts information as outdated after 10 minutes. Note : hitting refresh on alerts screen forces data refresh.