コード例 #1
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"));
 }
コード例 #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"));
 }