use of org.gluu.service.cdi.event.CleanerEvent in project oxTrust by GluuFederation.
the class CleanerTimer method initTimer.
public void initTimer() {
log.debug("Initializing Cleaner Timer");
cleanUpLogger.addNewLogLine("Initializing Cleaner Timer at:" + new Date());
this.isActive = new AtomicBoolean(false);
// Schedule to start cleaner every 1 minute
cleanerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new CleanerEvent(), Scheduled.Literal.INSTANCE));
cleanUpLogger.addNewLogLine("Initialization Done at :" + new Date());
}
use of org.gluu.service.cdi.event.CleanerEvent in project oxAuth by GluuFederation.
the class CleanerTimer method initTimer.
public void initTimer() {
log.debug("Initializing Cleaner Timer");
this.isActive = new AtomicBoolean(false);
// Schedule to start cleaner every 30 seconds
cleanerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new CleanerEvent(), Scheduled.Literal.INSTANCE));
this.lastFinishedTime = System.currentTimeMillis();
}
Aggregations