}, 0, interval, TimeUnit.MILLISECONDS);
}
private void processApplicationEvents() {
while (!monitoringEventListener.getApplicationEvents().isEmpty()) {
final ApplicationEvent appEvent = monitoringEventListener.getApplicationEvents().remove();
switch (appEvent.getType()) {
case INITIALIZATION_FINISHED:
case RELOAD_FINISHED:
final ApplicationStatisticsImpl initStatistics = new ApplicationStatisticsImpl(appEvent.getResourceConfig(),
new Date(monitoringEventListener.getApplicationStartTime()), appEvent.getRegisteredClasses(),
appEvent.getRegisteredInstances(), appEvent.getProviders());
statisticsBuilder.setApplicationStatisticsImpl(initStatistics);
break;
}
}