use of org.xdi.service.cdi.event.UpdateScriptEvent in project oxCore by GluuFederation.
the class CustomScriptManager method initTimer.
public void initTimer(List<CustomScriptType> supportedCustomScriptTypes) {
this.supportedCustomScriptTypes = supportedCustomScriptTypes;
this.isActive = new AtomicBoolean(false);
this.lastFinishedTime = System.currentTimeMillis();
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
reload();
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new UpdateScriptEvent(), Scheduled.Literal.INSTANCE));
}
Aggregations