Search in sources :

Example 1 with StatEvent

use of org.gluu.oxauth.service.cdi.event.StatEvent in project oxAuth by GluuFederation.

the class StatTimer method initTimer.

@Asynchronous
public void initTimer() {
    log.info("Initializing Stat Service Timer");
    this.isActive = new AtomicBoolean(false);
    timerEvent.fire(new TimerEvent(new TimerSchedule(TIMER_TICK_INTERVAL_IN_SECONDS, TIMER_TICK_INTERVAL_IN_SECONDS), new StatEvent(), Scheduled.Literal.INSTANCE));
    this.lastFinishedTime = System.currentTimeMillis();
    log.info("Initialized Stat Service Timer");
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent) StatEvent(org.gluu.oxauth.service.cdi.event.StatEvent) Asynchronous(org.gluu.service.cdi.async.Asynchronous)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 StatEvent (org.gluu.oxauth.service.cdi.event.StatEvent)1 Asynchronous (org.gluu.service.cdi.async.Asynchronous)1 TimerEvent (org.gluu.service.timer.event.TimerEvent)1 TimerSchedule (org.gluu.service.timer.schedule.TimerSchedule)1