public void setCooldownExpirationByTriggerAndMetric ( Trigger trigger , Metric metric , long cooldownExpiration ) { requireArgument ( cooldownExpiration >= 0 , "Cool down expiration time cannot be negative." ) ; String key = _hashTriggerAndMetric ( trigger , metric ) ; this . cooldownExpirationByTriggerAndMetric . put ( key , cooldownExpiration ) ; }
Sets the cool down expiration time of the notification given a metric trigger combination .