use of org.xdi.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class CleanerTimer method initTimer.
public void initTimer() {
log.debug("Initializing Cleaner Timer");
this.isActive = new AtomicBoolean(false);
int interval = appConfiguration.getCleanServiceInterval();
if (interval <= 0) {
interval = DEFAULT_INTERVAL;
}
cleanerEvent.fire(new TimerEvent(new TimerSchedule(30, 30), new CleanerEvent(), Scheduled.Literal.INSTANCE));
}
use of org.xdi.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class AppInitializer method initTimer.
public void initTimer() {
this.isActive = new AtomicBoolean(false);
this.lastFinishedTime = System.currentTimeMillis();
timerEvent.fire(new TimerEvent(new TimerSchedule(1 * 60, DEFAULT_INTERVAL), new AuthConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
use of org.xdi.service.timer.schedule.TimerSchedule in project oxTrust by GluuFederation.
the class MetadataValidationTimer method initTimer.
public void initTimer() {
log.debug("Initializing Metadata Validation Timer");
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new MetadataValidationEvent(), Scheduled.Literal.INSTANCE));
}
use of org.xdi.service.timer.schedule.TimerSchedule 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));
}
use of org.xdi.service.timer.schedule.TimerSchedule in project oxTrust by GluuFederation.
the class ConfigurationFactory method initTimer.
public void initTimer() {
log.debug("Initializing Configuration Timer");
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new ConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
Aggregations