public interface ReceiverPartition
seek operations
that can be invoked when partitions are assigned.| Modifier and Type | Method and Description |
|---|---|
long |
position()
Returns the offset of the next record that will be fetched from this topic partition.
|
void |
seek(long offset)
Seeks to the specified offset of the topic partition.
|
void |
seekToBeginning()
Seeks to the first available offset of the topic partition.
|
void |
seekToEnd()
Seeks to the last offset of the topic partition.
|
TopicPartition |
topicPartition()
Returns the underlying Kafka topic partition.
|
TopicPartition topicPartition()
void seekToBeginning()
void seekToEnd()
void seek(long offset)
long position()