Esempio n. 1
0
 internal KafkaMessageStream(string topic, BlockingCollection <FetchedDataChunk> queue, int consumerTimeoutMs, IDecoder <TData> decoder, CancellationToken token)
 {
     this.topic             = topic;
     this.consumerTimeoutMs = consumerTimeoutMs;
     this.queue             = queue;
     this.decoder           = decoder;
     this.iterator          = new ConsumerIterator <TData>(topic, queue, consumerTimeoutMs, decoder, token);
 }
Esempio n. 2
0
 internal KafkaMessageStream(string topic,
                             BlockingCollection <FetchedDataChunk> queue,
                             int consumerTimeoutMs,
                             IDecoder <TData> decoder)
 {
     this.topic             = topic;
     this.consumerTimeoutMs = consumerTimeoutMs;
     this.queue             = queue;
     this.decoder           = decoder;
     iterator = new ConsumerIterator <TData>(this.topic, this.queue, this.consumerTimeoutMs, this.decoder);
 }
Esempio n. 3
0
 internal KafkaMessageStream(BlockingCollection <FetchedDataChunk> queue, int consumerTimeoutMs)
 {
     this.consumerTimeoutMs = consumerTimeoutMs;
     this.queue             = queue;
     this.iterator          = new ConsumerIterator(this.queue, this.consumerTimeoutMs);
 }
Esempio n. 4
0
 internal KafkaMessageStream(BlockingCollection <FetchedDataChunk> queue, int consumerTimeoutMs, CancellationToken token)
 {
     this.consumerTimeoutMs = consumerTimeoutMs;
     this.queue             = queue;
     this.iterator          = new ConsumerIterator(queue, consumerTimeoutMs, token);
 }