Interface KafkaSeekOperations
- All Superinterfaces:
Iterable<KafkaSeekOperation>
Defines an interface that can be injected into
KafkaListener beans so that
seek operations can be eventually performed on a consumer.
The operations will be performed by Micronaut automatically, when the consumer method
completes successfully, possibly after committing offsets via OffsetStrategy.AUTO.
- Since:
- 4.1
- Author:
- Guillermo Calvo
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefer(@NonNull KafkaSeekOperation operation) Adds aKafkaSeekOperationto the list.static @NonNull KafkaSeekOperationsCreates a newKafkaSeekOperationsinstance.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
newInstance
Creates a newKafkaSeekOperationsinstance.- Returns:
- a new instance.
-
defer
Adds aKafkaSeekOperationto the list.- Parameters:
operation- the kafka seek operation to eventually perform.
-