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

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