コード例 #1
0
 public ConsumerOptions(string topic, IBrokerRouter router)
 {
     Topic = topic;
     Router = router;
     PartitionWhitelist = new List<int>();
     Log = new DefaultTraceLog();
     TopicPartitionQueryTimeMs = (int)TimeSpan.FromMinutes(15).TotalMilliseconds;
     ConsumerBufferSize = DefaultMaxConsumerBufferSize;
     BackoffInterval = TimeSpan.FromMilliseconds(DefaultBackoffIntervalMS);
 }
コード例 #2
0
 public ConsumerOptions(string topic, IBrokerRouter router)
 {
     Topic              = topic;
     Router             = router;
     PartitionWhitelist = new List <int>();
     Log = new DefaultTraceLog();
     TopicPartitionQueryTimeMs = (int)TimeSpan.FromMinutes(15).TotalMilliseconds;
     ConsumerBufferSize        = DefaultMaxConsumerBufferSize;
     BackoffInterval           = TimeSpan.FromMilliseconds(DefaultBackoffIntervalMS);
 }