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.
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.