Search in sources :

Example 1 with KeyGenerationEvent

use of org.gluu.oxauth.service.cdi.event.KeyGenerationEvent in project oxAuth by GluuFederation.

the class KeyGeneratorTimer method initTimer.

public void initTimer() {
    log.info("Initializing Key Generator Timer");
    this.isActive = new AtomicBoolean(false);
    timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new KeyGenerationEvent(), Scheduled.Literal.INSTANCE));
    this.lastFinishedTime = System.currentTimeMillis();
    log.info("Initialized Key Generator Timer");
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) KeyGenerationEvent(org.gluu.oxauth.service.cdi.event.KeyGenerationEvent) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Aggregations

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