@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);
@Override public void run() { try { processRequestItems(); processResponseCodeEvents(); processExceptionMapperEvents(); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); // rethrowing exception stops further task execution throw new ProcessingException(LocalizationMessages.ERROR_MONITORING_STATISTICS_GENERATION(), t); } final MonitoringStatisticsImpl immutableStats = statisticsBuilder.build(); final Iterator<MonitoringStatisticsListener> iterator = statisticsCallbackList.iterator(); while (iterator.hasNext() && !Thread.currentThread().isInterrupted()) { final MonitoringStatisticsListener listener = iterator.next(); try { listener.onStatistics(immutableStats); } catch (final Throwable t) { LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_MONITORING_STATISTICS_LISTENER(listener.getClass()), t); iterator.remove(); } } } }, 0, interval, TimeUnit.MILLISECONDS);