public ProducerTopicStats(string clientId)
 {
     this.ClientId = clientId;
     this.valueFactory = k => new ProducerTopicMetrics(k);
     this.stats = new Pool<ClientIdAndTopic, ProducerTopicMetrics>(this.valueFactory);
     this.allTopicsStats = new ProducerTopicMetrics(new ClientIdAndTopic(this.ClientId, "AllTopics"));
 }
Beispiel #2
0
 public ProducerTopicStats(string clientId)
 {
     this.ClientId       = clientId;
     this.valueFactory   = k => new ProducerTopicMetrics(k);
     this.stats          = new Pool <ClientIdAndTopic, ProducerTopicMetrics>(this.valueFactory);
     this.allTopicsStats = new ProducerTopicMetrics(new ClientIdAndTopic(this.ClientId, "AllTopics"));
 }