public PartitionProcessor(PartitionProcessorOptions processorOptions, ChainHandler chainRoot) : base(chainRoot) { if (processorOptions == null) { throw new ArgumentNullException("processorOptions"); } _processorOptions = processorOptions; }
private static void ConsumeOnePartition(object o) { var partitionId = (int)o; var options = new PartitionProcessorOptions(Settings.Default.kServer, Settings.Default.kTopic, partitionId, Settings.Default.kClientId); var spdTck = new SpeedTicketQtree(null); var chain = new OdometerHandler(spdTck); IPartitionProcessor processor = new PartitionProcessor(options, chain); Console.WriteLine("Init consumer partition {1} - {0}", partitionId, Settings.Default.kClientId); processor.Process(); }