use of org.gluu.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class ExpirationNotificatorTimer method initTimer.
public void initTimer() {
log.debug("Initializing ExpirationNotificatorTimer");
this.isActive = new AtomicBoolean(false);
expiringMap = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).maxSize(appConfiguration.getExpirationNotificatorMapSizeLimit()).variableExpiration().build();
expiringMap.addExpirationListener(this);
timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new ExpirationEvent(), Scheduled.Literal.INSTANCE));
this.lastFinishedTime = System.currentTimeMillis();
}
use of org.gluu.service.timer.schedule.TimerSchedule 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));
}
Aggregations