Search in sources :

Example 1 with EntityIdMonitoringEvent

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

the class EntityIDMonitoringService method initTimer.

public void initTimer() {
    log.debug("Initializing EntityId Monitoring Timer");
    this.isActive = new AtomicBoolean(false);
    final int delay = 30;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new EntityIdMonitoringEvent(), Scheduled.Literal.INSTANCE));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) EntityIdMonitoringEvent(org.gluu.oxtrust.service.cdi.event.EntityIdMonitoringEvent) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 EntityIdMonitoringEvent (org.gluu.oxtrust.service.cdi.event.EntityIdMonitoringEvent)1 TimerEvent (org.xdi.service.timer.event.TimerEvent)1 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)1