Interface KafkaSeeker
public interface KafkaSeeker
Performs
seek operations on a target consumer.- Since:
- 4.1
- Author:
- Guillermo Calvo
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull KafkaSeekernewInstance(@NonNull Consumer<?, ?> consumer) Creates a newKafkaSeekerwith a given targetConsumer.booleanperform(@NonNull KafkaSeekOperation operation) Performs a kafka seek operation immediately.
-
Method Details
-
newInstance
@Internal @NonNull static @NonNull KafkaSeeker newInstance(@NonNull @NonNull Consumer<?, ?> consumer) Creates a newKafkaSeekerwith a given targetConsumer.- Parameters:
consumer- the target consumer.- Returns:
- a new kafka seeker.
-
perform
Performs a kafka seek operation immediately.- Parameters:
operation- the kafka seek operation to perform.- Returns:
- whether the seek operation succeeded or not.
-