Interface KafkaSeeker


public interface KafkaSeeker
Performs seek operations on a target consumer.
Since:
4.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NonNull KafkaSeeker
    newInstance(@NonNull org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    Creates a new KafkaSeeker with a given target Consumer.
    boolean
    perform(@NonNull KafkaSeekOperation operation)
    Performs a kafka seek operation immediately.
  • Method Details

    • newInstance

      @Internal @NonNull static @NonNull KafkaSeeker newInstance(@NonNull @NonNull org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
      Creates a new KafkaSeeker with a given target Consumer.
      Parameters:
      consumer - the target consumer.
      Returns:
      a new kafka seeker.
    • perform

      boolean perform(@NonNull @NonNull KafkaSeekOperation operation)
      Performs a kafka seek operation immediately.
      Parameters:
      operation - the kafka seek operation to perform.
      Returns:
      whether the seek operation succeeded or not.