use of org.gluu.oxauth.service.cdi.event.ExpirationEvent 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();
}
Aggregations