@Override public void onPolicyDeleted(Map<String, T> deleted) { if(LOG.isDebugEnabled()) LOG.debug(executorId + ", partition " + partitionSeq + " policy deleted : " + deleted); for(T alertDef : deleted.values()){ if(!accept(alertDef)) continue; LOG.info(executorId + ", partition " + partitionSeq + " policy really deleted " + alertDef); String policyId = alertDef.getTags().get(Constants.POLICY_ID); synchronized(this.policyEvaluators) { if (policyEvaluators.containsKey(policyId)) { PolicyEvaluator<T> pe = policyEvaluators.remove(alertDef.getTags().get(Constants.POLICY_ID)); pe.onPolicyDelete(); } } } }