Interface ConsumerSeekAware.ConsumerSeekCallback

Enclosing interface:
ConsumerSeekAware

public static interface ConsumerSeekAware.ConsumerSeekCallback
A callback that a listener can invoke to seek to a specific offset.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    seek(String topic, int partition, long offset)
    Perform a seek operation.
    void
    seekRelative(String topic, int partition, long offset, boolean toCurrent)
    Perform a seek relative to the start, end, or current position.
    void
    seekToBeginning(String topic, int partition)
    Perform a seek to beginning operation.
    default void
    seekToBeginning(Collection<org.apache.kafka.common.TopicPartition> partitions)
    Perform a seek to beginning operation.
    void
    seekToEnd(String topic, int partition)
    Perform a seek to end operation.
    default void
    seekToEnd(Collection<org.apache.kafka.common.TopicPartition> partitions)
    Perform a seek to end operation.
    void
    seekToTimestamp(String topic, int partition, long timestamp)
    Perform a seek to the first offset greater than or equal to the time stamp.
    void
    seekToTimestamp(Collection<org.apache.kafka.common.TopicPartition> topicPartitions, long timestamp)
    Perform a seek to the first offset greater than or equal to the time stamp.