Ejemplo n.º 1
0
 public ProducerTopicMetrics(ClientIdAndTopic metricId)
 {
     this.MessageRate        = MetersFactory.NewMeter(metricId + "MessagesPerSec", "messages", TimeSpan.FromSeconds(1));
     this.ByteRate           = MetersFactory.NewMeter(metricId + "BytesPerSec", "bytes", TimeSpan.FromSeconds(1));
     this.DroppedMessageRate = MetersFactory.NewMeter(
         metricId + "DroppedMessagesPerSec", "drops", TimeSpan.FromSeconds(1));
 }
Ejemplo n.º 2
0
 protected bool Equals(ClientIdAndTopic other)
 {
     return this.ClientId == other.ClientId && this.Topic == other.Topic;
 }
 protected bool Equals(ClientIdAndTopic other)
 {
     return(this.ClientId == other.ClientId && this.Topic == other.Topic);
 }