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
ConstructorsConstructorDescriptionBatchConsumerRecordsBinderRegistry(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, ConsumerRecords<?, ?> source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry
addRequestArgumentBinder
-
Constructor Details
-
BatchConsumerRecordsBinderRegistry
public BatchConsumerRecordsBinderRegistry(ConsumerRecordBinderRegistry consumerRecordBinderRegistry, io.micronaut.core.convert.ConversionService conversionService) Constructs a new instance.- Parameters:
consumerRecordBinderRegistry- The wrappedConsumerRecordBinderRegistryconversionService- The conversion service
-
-
Method Details
-
findArgumentBinder
public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,ConsumerRecords<?, findArgumentBinder?>>> (io.micronaut.core.type.Argument<T> argument, ConsumerRecords<?, ?> source) - Specified by:
findArgumentBinderin interfaceio.micronaut.core.bind.ArgumentBinderRegistry<ConsumerRecords<?,?>>
-