一個屬於new consumer的配置項,出現在0.10及其以上版本中。
#一次調用poll()操作時返回的最大記錄數,默認值爲500
spring.kafka.consumer.max-poll-records;
Properties properties = new Properties();
properties.put("max.poll.records",2);
一個屬於new consumer的配置項,出現在0.10及其以上版本中。
#一次調用poll()操作時返回的最大記錄數,默認值爲500
spring.kafka.consumer.max-poll-records;
Properties properties = new Properties();
properties.put("max.poll.records",2);