this.numActiveConnections = new MutableInt(0);
this.serverCommBufferStats = new CommBufferSizeStats();
// Theoretically, the delay can be only upto SELECTOR_POLL_MS.
// But sometimes wallclock time can be higher
this.selectTimeMsHistogram = new Histogram(SelectorManager.SELECTOR_POLL_MS * 2,
1,
SELECTOR_STATS_RESET_INTERVAL);
// Not a scientific limit. Not expecting a server thread to handle more
// than 100K connections.
this.selectCountHistogram = new Histogram(100000, 1, SELECTOR_STATS_RESET_INTERVAL);
// again not scientific. But we really don't care about any processing
// time higher than 15 seconds
this.processingTimeMsHistogram = new Histogram(15000, 1, SELECTOR_STATS_RESET_INTERVAL);
}