Search in sources :

Example 1 with UpdateScriptEvent

use of org.gluu.service.cdi.event.UpdateScriptEvent 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));
}
Also used : TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent) UpdateScriptEvent(org.gluu.service.cdi.event.UpdateScriptEvent) Asynchronous(org.gluu.service.cdi.async.Asynchronous)

Aggregations

Asynchronous (org.gluu.service.cdi.async.Asynchronous)1 UpdateScriptEvent (org.gluu.service.cdi.event.UpdateScriptEvent)1 TimerEvent (org.gluu.service.timer.event.TimerEvent)1 TimerSchedule (org.gluu.service.timer.schedule.TimerSchedule)1