Skip to content

Commit

Permalink
MINOR: Changed javadoc on KafkaConsumer#endOffsets (apache#3470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenny authored and guozhangwang committed Jan 26, 2018
1 parent 739256b commit a9af5c7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1643,8 +1643,10 @@ public Map<TopicPartition, Long> beginningOffsets(Collection<TopicPartition> par
}

/**
* Get the last offset for the given partitions. The last offset of a partition is the offset of the upcoming
* message, i.e. the offset of the last available message + 1.
* Get the last offset for the given partitions. The last offset of a partition is the offset of the upcoming
* message, i.e. the offset of the last available message + 1. If messages have never been written
* to the the partition, the offset returned will be 0.
*
* <p>
* Notice that this method may block indefinitely if the partition does not exist.
* This method does not change the current consumer position of the partitions.
Expand Down

0 comments on commit a9af5c7

Please sign in to comment.