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 TypeMethodDescriptionvoid
defer
(@NonNull KafkaSeekOperation operation) Adds aKafkaSeekOperation
to the list.static @NonNull KafkaSeekOperations
Creates a newKafkaSeekOperations
instance.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
newInstance
Creates a newKafkaSeekOperations
instance.- Returns:
- a new instance.
-
defer
Adds aKafkaSeekOperation
to the list.- Parameters:
operation
- the kafka seek operation to eventually perform.
-