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")); }
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")); }