use of org.gluu.service.cdi.async.Asynchronous 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");
}
use of org.gluu.service.cdi.async.Asynchronous in project oxCore by GluuFederation.
the class CustomScriptManager method initTimer.
@Asynchronous
public void initTimer(List<CustomScriptType> supportedCustomScriptTypes) {
this.supportedCustomScriptTypes = supportedCustomScriptTypes;
configure();
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
reload(true);
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new UpdateScriptEvent(), Scheduled.Literal.INSTANCE));
}
Aggregations