public BrokerPartitionInfo(ISyncProducerPool syncProducerPool, IDictionary <string, TopicMetadata> cache, IDictionary <string, DateTime> lastUpdateTime, int topicMetaDataRefreshIntervalMS, ZooKeeperClient zkClient) { this.syncProducerPool = syncProducerPool; this.topicPartitionInfo = cache; this.topicPartitionInfoLastUpdateTime = lastUpdateTime; this.topicMetaDataRefreshIntervalMS = topicMetaDataRefreshIntervalMS; this.zkClient = zkClient; }
public BrokerPartitionInfo(ISyncProducerPool syncProducerPool, IDictionary<string, TopicMetadata> cache, IDictionary<string, DateTime> lastUpdateTime, int topicMetaDataRefreshIntervalMS, ZooKeeperClient zkClient) { this.syncProducerPool = syncProducerPool; this.topicPartitionInfo = cache; this.topicPartitionInfoLastUpdateTime = lastUpdateTime; this.topicMetaDataRefreshIntervalMS = topicMetaDataRefreshIntervalMS; this.zkClient = zkClient; }
public DefaultCallbackHandler(ProducerConfiguration config, IPartitioner <TK> partitioner, IEncoder <TV> encoder, IBrokerPartitionInfo brokerPartitionInfo, ISyncProducerPool syncProducerPool) { this.producerConfig = config; this.partitioner = partitioner; Logger.DebugFormat("partitioner {0}", this.partitioner == null ? "Null" : this.partitioner.GetType().ToString()); this.encoder = encoder; this.syncProducerPool = syncProducerPool; this.brokerPartitionInfo = brokerPartitionInfo; }
public BrokerPartitionInfo(ISyncProducerPool syncProducerPool) { this.syncProducerPool = syncProducerPool; }
public BrokerPartitionInfo(ISyncProducerPool syncProducerPool) { this.syncProducerPool = syncProducerPool; }