コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public BrokerPartitionInfo(ISyncProducerPool syncProducerPool)
 {
     this.syncProducerPool = syncProducerPool;
 }
コード例 #5
0
 public BrokerPartitionInfo(ISyncProducerPool syncProducerPool)
 {
     this.syncProducerPool = syncProducerPool;
 }