code: public boolean isThresholdViolated(Queue<Event> queue, Event tailEvent, Threshold threshold) {
  		Interval queueInterval = null;
  
  		if (queue.size() >= threshold.getCount()) {
  			queueInterval = getQueueInterval(queue, tailEvent);
  
  			if (queueInterval.toMillis() <= threshold.getInterval().toMillis()) {
  				return true;
  			}
  		}
  
  		return false;
  	}
docs: Determines whether a queue of {@link Event}s crosses a {@link Threshold} in the correct
  amount of time.
  
  @param queue a queue of {@link Event}s
  @param tailEvent the {@link Event} at the tail of the queue
  @param threshold the {@link Threshold} to evaluate
  @return boolean evaluation of the {@link Threshold}