Class BatchConsumerRecordsBinderRegistry
java.lang.Object
io.micronaut.configuration.kafka.bind.batch.BatchConsumerRecordsBinderRegistry
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinderRegistry<ConsumerRecords<?,
?>>
@Singleton
public class BatchConsumerRecordsBinderRegistry
extends Object
implements io.micronaut.core.bind.ArgumentBinderRegistry<ConsumerRecords<?,?>>
Binds arguments in batches from a
ConsumerRecords
instance.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionBatchConsumerRecordsBinderRegistry
(ConsumerRecordBinderRegistry consumerRecordBinderRegistry, io.micronaut.core.convert.ConversionService conversionService) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,
ConsumerRecords<?, ?>>> findArgumentBinder
(io.micronaut.core.type.Argument<T> argument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry
addArgumentBinder, addRequestArgumentBinder, findArgumentBinder
-
Constructor Details
-
BatchConsumerRecordsBinderRegistry
public BatchConsumerRecordsBinderRegistry(ConsumerRecordBinderRegistry consumerRecordBinderRegistry, io.micronaut.core.convert.ConversionService conversionService) Constructs a new instance.- Parameters:
consumerRecordBinderRegistry
- The wrappedConsumerRecordBinderRegistry
conversionService
- The conversion service
-
-
Method Details
-
findArgumentBinder
public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,ConsumerRecords<?, findArgumentBinder?>>> (io.micronaut.core.type.Argument<T> argument) - Specified by:
findArgumentBinder
in interfaceio.micronaut.core.bind.ArgumentBinderRegistry<ConsumerRecords<?,
?>>
-