private final Counter failedFlushes;
private final Timer flushTimes;
private final RefCountingMonitor refCounter;
protected TcpServerListener(String monitorId) {
refCounter = new RefCountingMonitor(monitorId);
liveConnections = newLongGauge("liveConnections");
inflightConnections = newLongGauge("inflightConnections");
pendingConnectionClose = newLongGauge("pendingConnectionClose");
failedConnectionClose = newCounter("failedConnectionClose");
failedConnections = newCounter("failedConnections");