Search in sources :

Example 1 with CleanerEvent

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

the class CleanerTimer method initTimer.

public void initTimer() {
    log.debug("Initializing Cleaner Timer");
    this.isActive = new AtomicBoolean(false);
    int interval = appConfiguration.getCleanServiceInterval();
    if (interval <= 0) {
        interval = DEFAULT_INTERVAL;
    }
    cleanerEvent.fire(new TimerEvent(new TimerSchedule(30, 30), new CleanerEvent(), Scheduled.Literal.INSTANCE));
}
Also used : CleanerEvent(org.xdi.oxauth.service.cdi.event.CleanerEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 CleanerEvent (org.xdi.oxauth.service.cdi.event.CleanerEvent)1 TimerEvent (org.xdi.service.timer.event.TimerEvent)1 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)1