Search in sources :

Example 1 with TranscodingRulesUpdateEvent

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

the class TranscodingRulesUpdater method initTimer.

public void initTimer() {
    log.debug("Initializing Shibboleth Transcoding Rules Updater");
    final int delay = DEFAULT_UPDATE_DELAY;
    final int interval = DEFAULT_UPDATE_INTERVAL;
    TimerSchedule timerSchedule = new TimerSchedule(delay, interval);
    timerEvent.fire(new TimerEvent(timerSchedule, new TranscodingRulesUpdateEvent(), Scheduled.Literal.INSTANCE));
}
Also used : TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TranscodingRulesUpdateEvent(org.gluu.oxtrust.service.cdi.event.TranscodingRulesUpdateEvent) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Aggregations

TranscodingRulesUpdateEvent (org.gluu.oxtrust.service.cdi.event.TranscodingRulesUpdateEvent)1 TimerEvent (org.gluu.service.timer.event.TimerEvent)1 TimerSchedule (org.gluu.service.timer.schedule.TimerSchedule)1