@Override public void notify(Calculable calculable, ThresholdValues thresholdValues, ThresholdType type) { if (type.equals(ThresholdType.BREACHED)) breached.put(counter.incrementAndGet(), calculable); if (type.equals(ThresholdType.CLEARED)) cleared.put(counter.incrementAndGet(), calculable); }