/**
   * True if the predicate matches.
   *
   * @param request the servlet request to test
   */
  public boolean isMatch(HttpServletRequest request) {
    long now = Alarm.getCurrentTime();

    long prevEnable = _enableAt.prevTime(now);
    long prevDisable = _disableAt.prevTime(now);

    return prevEnable > 0 && prevDisable <= prevEnable;
  }
 private long nextRolloverTime(long time) {
   if (_rolloverCron != null) return _rolloverCron.nextTime(time);
   else return Period.periodEnd(time, getRolloverPeriod());
 }