Search in sources :

Example 1 with StatusCheckerTimerEvent

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

the class StatusCheckerTimer 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 StatusCheckerTimerEvent(), Scheduled.Literal.INSTANCE));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) StatusCheckerTimerEvent(org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent) StatusCheckerTimerEvent(org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent)

Aggregations

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