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 Details

    • BatchConsumerRecordsBinderRegistry

      public BatchConsumerRecordsBinderRegistry(ConsumerRecordBinderRegistry consumerRecordBinderRegistry, io.micronaut.core.convert.ConversionService conversionService)
      Constructs a new instance.
      Parameters:
      consumerRecordBinderRegistry - The wrapped ConsumerRecordBinderRegistry
      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 interface io.micronaut.core.bind.ArgumentBinderRegistry<ConsumerRecords<?,?>>