Search in sources :

Example 1 with ConfigurationEvent

use of org.xdi.service.cdi.event.ConfigurationEvent in project oxTrust by GluuFederation.

the class ConfigurationFactory method initTimer.

public void initTimer() {
    log.debug("Initializing Configuration Timer");
    final int delay = 30;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new ConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
Also used : ConfigurationEvent(org.xdi.service.cdi.event.ConfigurationEvent) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Example 2 with ConfigurationEvent

use of org.xdi.service.cdi.event.ConfigurationEvent in project oxAuth by GluuFederation.

the class ConfigurationFactory method initTimer.

public void initTimer() {
    log.debug("Initializing Configuration Timer");
    final int delay = 30;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new ConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
Also used : ConfigurationEvent(org.xdi.service.cdi.event.ConfigurationEvent) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

ConfigurationEvent (org.xdi.service.cdi.event.ConfigurationEvent)2 TimerEvent (org.xdi.service.timer.event.TimerEvent)2 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)2