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 KafkaSeeker
newInstance
(@NonNull Consumer<?, ?> consumer) Creates a newKafkaSeeker
with a given targetConsumer
.boolean
perform
(@NonNull KafkaSeekOperation operation) Performs a kafka seek operation immediately.
-
Method Details
-
newInstance
@Internal @NonNull static @NonNull KafkaSeeker newInstance(@NonNull @NonNull Consumer<?, ?> consumer) Creates a newKafkaSeeker
with 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.
-