Skip to content

Commit

Permalink
Update sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/…
Browse files Browse the repository at this point in the history
…KafkaIO.java

Co-authored-by: Jonathan Sabbagh <[email protected]>
  • Loading branch information
xianhualiu and jbsabbagh authored Apr 10, 2024
1 parent e762571 commit b2a6196
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,8 @@ public Read<K, V> withBadRecordErrorHandler(ErrorHandler<BadRecord, ?> badRecord

/**
* Sets the timeout time for Kafka consumer polling request in the {@link ReadFromKafkaDoFn}.
* A lower timeout optimizes for latency.
* Increase the timeout if the consumer is not fetching enough (or any) records.
* The default is 2 seconds.
*/
public Read<K, V> withConsumerPollingTimeout(Duration duration) {
Expand Down

0 comments on commit b2a6196

Please sign in to comment.