Search in sources :

Example 1 with LdapStatusEvent

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

the class LdapStatusTimer method initTimer.

public void initTimer() {
    log.info("Initializing Ldap 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.xdi.service.cdi.event.LdapStatusEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Example 2 with LdapStatusEvent

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

the class LdapStatusTimer method initTimer.

public void initTimer() {
    log.info("Initializing Ldap 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.xdi.service.cdi.event.LdapStatusEvent) 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)2 LdapStatusEvent (org.xdi.service.cdi.event.LdapStatusEvent)2 TimerEvent (org.xdi.service.timer.event.TimerEvent)2 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)2