Search in sources :

Example 1 with StatusCheckerDailyEvent

use of org.gluu.oxtrust.service.cdi.event.StatusCheckerDailyEvent in project oxTrust by GluuFederation.

the class StatusCheckerDaily method initTimer.

public void initTimer() {
    log.info("Initializing Daily Status Cheker Timer");
    this.isActive = new AtomicBoolean(false);
    final int delay = 1 * 60;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new StatusCheckerDailyEvent(), Scheduled.Literal.INSTANCE));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) StatusCheckerDailyEvent(org.gluu.oxtrust.service.cdi.event.StatusCheckerDailyEvent) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 StatusCheckerDailyEvent (org.gluu.oxtrust.service.cdi.event.StatusCheckerDailyEvent)1 TimerEvent (org.xdi.service.timer.event.TimerEvent)1 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)1