Esempio n. 1
0
 public void UpdateCumulativeStats(IConsumerStats stats)
 {
     if (stats == null)
     {
         return;
     }
     _numMsgsReceived.Add(stats.NumMsgsReceived);
     _numBytesReceived.Add(stats.NumBytesReceived);
     _numReceiveFailed.Add(stats.NumReceiveFailed);
     _numBatchReceiveFailed.Add(stats.NumBatchReceiveFailed);
     _numAcksSent.Add(stats.NumAcksSent);
     _numAcksFailed.Add(stats.NumAcksFailed);
     _totalMsgsReceived.Add(stats.TotalMsgsReceived);
     _totalBytesReceived.Add(stats.TotalBytesReceived);
     _totalReceiveFailed.Add(stats.TotalReceivedFailed);
     _totalBatchReceiveFailed.Add(stats.TotaBatchReceivedFailed);
     _totalAcksSent.Add(stats.TotalAcksSent);
     _totalAcksFailed.Add(stats.TotalAcksFailed);
 }
Esempio n. 2
0
 public void UpdateCumulativeStats(IConsumerStats stats)
 {
     // do nothing
 }