question: public boolean canSendEmailNotification ( long ts , String reason , int emailAlertIntervalMinutes ) { boolean toSend = false ; if ( this . lastEmailAlertTime == - 1L ) toSend = true ; else if ( ! reason . equalsIgnoreCase ( this . lastEmailAlertReason ) ) toSend = true ; else if ( ts >= this . lastEmailAlertTime + emailAlertIntervalMinutes * 60000 ) toSend = true ; if ( toSend ) { this . lastEmailAlertTime = ts ; this . lastEmailAlertReason = reason ; } return toSend ; }
target:  Test if we should send out email notification