Examples of Alarm


Examples of com.caucho.util.Alarm

  {
    super.destroy();

    _isActive = false;

    Alarm alarm = _alarm;
    _alarm = null;

    if (alarm != null)
      alarm.dequeue();

    flush();

    _logWriter.close();
  }
View Full Code Here

Examples of com.caucho.util.Alarm

    _ruleList.trimToSize();

    register();

    if (_depend.size() > 0) {
      _alarm = new Alarm(this);

      handleAlarm(_alarm);
    }
  }
View Full Code Here

Examples of com.caucho.util.Alarm

    for (Rule rule : ruleList) {
      // XXX: s/b  Config.destroy(rule);
      rule.destroy();
    }

    Alarm alarm = _alarm;
    _alarm = null;

    if (alarm != null)
      alarm.dequeue();

    super.destroy();
  }
View Full Code Here

Examples of com.caucho.util.Alarm

      ResinSystem.getCurrent().start();

      _lifecycle.toActive();
     
      // valid checker
      new Alarm(this).queue(60000);
    } finally {
      thread.setContextClassLoader(oldLoader);
    }
  }
View Full Code Here

Examples of com.caucho.util.Alarm

      _initialExpires = initialExpires;
      _period = period;
      _delay = delay;
      _nextTime = initialExpires;

      _alarm = new Alarm(_name, this, loader);
    }
View Full Code Here

Examples of com.caucho.util.Alarm

      _initialExpires = initialExpires;
      _period = period;
      _delay = delay;

      _alarm = new Alarm(_name, this, loader);
    }
View Full Code Here

Examples of com.caucho.util.Alarm

      _rule = rule;
      _cron = cron;
      _isEnable = isEnable;

      String type = isEnable ? "enable" : "disable";
      _alarm = new Alarm("rewrite-rule-" + type, this);

      queue();
    }
View Full Code Here

Examples of com.caucho.util.Alarm

    {
      long now = Alarm.getCurrentTime();

      long nextTime = _cron.nextTime(now);

      Alarm alarm = _alarm;

      if (alarm == null)
        return;

      _rule.setEnabled(_isEnable);

      alarm.queue(nextTime - now);
    }
View Full Code Here

Examples of com.caucho.util.Alarm

      queue();
    }

    public void destroy()
    {
      Alarm alarm = _alarm;
      _alarm = null;

      if (alarm != null)
        alarm.dequeue();
    }
View Full Code Here

Examples of com.caucho.util.Alarm

  protected void init()
    throws Exception
  {
    initDatabase();

    _alarm = new Alarm(new ExpireAlarm());
    // _alarm.queue(_expireTimeout);

    _alarm.queue(0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.