Search in sources :

Example 1 with LdapStatusEvent

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

the class PersistanceStatusTimer method initTimer.

public void initTimer() {
    log.info("Initializing Persistance Layer Status Timer");
    this.isActive = new AtomicBoolean(false);
    timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new LdapStatusEvent(), Scheduled.Literal.INSTANCE));
}
Also used : LdapStatusEvent(org.gluu.service.cdi.event.LdapStatusEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 2 with LdapStatusEvent

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

the class LdapStatusTimer method initTimer.

public void initTimer() {
    log.info("Initializing Persistance Layer Status Timer");
    this.isActive = new AtomicBoolean(false);
    timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new LdapStatusEvent(), Scheduled.Literal.INSTANCE));
}
Also used : LdapStatusEvent(org.gluu.service.cdi.event.LdapStatusEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 LdapStatusEvent (org.gluu.service.cdi.event.LdapStatusEvent)2 TimerEvent (org.gluu.service.timer.event.TimerEvent)2 TimerSchedule (org.gluu.service.timer.schedule.TimerSchedule)2