use of org.gluu.service.cdi.event.CibaRequestsProcessorEvent in project oxAuth by GluuFederation.
the class CibaRequestsProcessorJob method initTimer.
/**
* Method invoked from the appInitializer to start processing every some time.
*/
public void initTimer() {
log.debug("Initializing CIBA requests processor");
this.isActive = new AtomicBoolean(false);
int intervalSec = appConfiguration.getBackchannelRequestsProcessorJobIntervalSec();
// Schedule to start processor every N seconds
processorEvent.fire(new TimerEvent(new TimerSchedule(intervalSec, intervalSec), new CibaRequestsProcessorEvent(), Scheduled.Literal.INSTANCE));
this.lastFinishedTime = System.currentTimeMillis();
this.executorService = Executors.newCachedThreadPool(ServerUtil.daemonThreadFactory());
}
Aggregations