Search in sources :

Example 1 with LoggerUpdateEvent

use of org.gluu.service.cdi.event.LoggerUpdateEvent in project oxCore by GluuFederation.

the class LoggerService method initTimer.

public void initTimer() {
    log.info("Initializing Logger Update Timer");
    final int delay = 15;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new LoggerUpdateEvent(), Scheduled.Literal.INSTANCE));
}
Also used : TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent) LoggerUpdateEvent(org.gluu.service.cdi.event.LoggerUpdateEvent)

Aggregations

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