BloombergFLP.CollectdWin.MetricsCollector.AggregatorThreadProc C# (CSharp) Method

AggregatorThreadProc() private method

private AggregatorThreadProc ( ) : void
return void
        private void AggregatorThreadProc()
        {
            Logger.Trace("AggregatorThreadProc() begin");
            while (_runAggregatorThread)
            {
                try
                {
                    _aggregator.RemoveExpiredEntries();
                    Thread.Sleep(_timeout*1000);
                }
                catch (ThreadInterruptedException)
                {
                    Logger.Info("Aggregator thread interrupted");
                }
                catch (Exception exp)
                {
                    LogEventInfo logEvent = new LogEventInfo(LogLevel.Error, Logger.Name, "Exception in AggregatorThreadProc()");
                    logEvent.Exception = exp;
                    logEvent.Properties.Add("EventID", ErrorCodes.ERROR_UNHANDLED_EXCEPTION);
                    Logger.Log(logEvent);
                }
            }
            Logger.Trace("AggregatorThreadProc() return");
        }