Manually assign partitions to the consumer.
Manually assign partitions to the consumer. This assignment is not incremental but replaces the previous assignment.
Commit the specified offsets for the specified list of topics and partitions.
Commit offsets returned on the last poll() for all the subscribed list of topics and partition.
Get the end offset for a given partition.
Get the end offsets for the given partitions.
Get the end offsets for the given partitions. In the default read_uncommitted
isolation level, the end
offset is the high watermark (that is, the offset of the last successfully replicated message plus one). For
read_committed
consumers, the end offset is the last stable offset (LSO), which is the minimum of
the high watermark and the smallest offset of any open transaction. Finally, if the partition has never been
written to, the end offset is 0.
The time, in milliseconds, spent waiting in poll if data is not available in the buffer. If 0, returns immediately with any records that are available currently in the buffer, else returns empty. Must not be negative.
map of topic to records since the last fetch for the subscribed list of topics and partitions
Get the offset of the next record that will be fetched (if a record with that offset exists).
Subscribe to the given list of topics to get dynamically assigned partitions.
Subscribe to the given list of topics to get dynamically assigned partitions.
We block start until the consumer is subscribed to the topic. We're using a future pool here since Kafka requires all interactions with the consumer to come from a single thread.
Wakeup the consumer.
Wakeup the consumer. This method is thread-safe and is useful in particular to abort a long poll.
The thread which is blocking in an operation will throw WakeupException If no thread is blocking, the next blocking call will raise it instead.
(Since version 2019-05-30) Use the FinagleKafkaConsumerBuilder.buildClient to create a native Kafka Consumer instead.