Kafka之消费与激情
throw new IllegalStateException("Consumer is not subscribed to any topics or assigned any partitions"); } // poll for new data until the timeout expires long elapsedTime = 0L; do { client.maybeTriggerWakeup(); final long metadataEnd; if (includeMetadataInTimeout) { final long metadataStart = time.milliseconds(); if (!updateAssignmentMetadataIfNeeded(remainingTimeAtLeastZero(timeoutMs, elapsedTime))) { return ConsumerRecords.empty(); } metadataEnd = time.milliseconds(); elapsedTime += metadataEnd - metadataStart; } else { while (!updateAssignmentMetadataIfNeeded(Long.MAX_VALUE)) { log.warn("Still waiting for metadata"); } metadataEnd = time.milliseconds(); } final Map<TopicPartition, List<ConsumerRecord<K, V>>> records = pollForFetches(remainingTimeAtLeastZero(timeoutMs, elapsedTime)); if (!records.isEmpty()) { // before returning the fetched records, we can send off the next round of fetches (编辑:云计算网_泰州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- linux – 如果From包含特定地址,如何在postfix中为外发邮件
- iOS 5.1.1完美越狱Absinthe 2.0完整教程
- CentOS 6.3_Nagios配置笔记
- 在 Linux 上运用 WineZGUI 运行 Windows 应用和游戏
- GLib-2.2.1 amp;amp; glib、GTK+ 官网及下载地址
- 在redhat 6.6 64位操作系统中,systemctl命令在哪里?
- Ubuntu系统(四) 修改主机名和配置DNS上网
- 安装软件时提示缺少一个.so文件,无法继续怎么办
- linux – 我被黑了吗?未知进程dsfref,gfhddsfew,dsfref等将
- 用Git帮助写作者更好地实现工作