Class KafkaPartitionBinder<T>

java.lang.Object
io.micronaut.configuration.kafka.bind.KafkaPartitionBinder<T>
Type Parameters:
T - The target type
All Implemented Interfaces:
AnnotatedConsumerRecordBinder<KafkaPartition,T>, ConsumerRecordBinder<T>, io.micronaut.core.bind.ArgumentBinder<T,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>

@Singleton public class KafkaPartitionBinder<T> extends Object implements AnnotatedConsumerRecordBinder<KafkaPartition,T>
Binder for binding the parameters that is designated the KafkaPartition.
Since:
3.3.4
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    KafkaPartitionBinder(io.micronaut.core.convert.ConversionService conversionService)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<T>
    bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source)
     

    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.ArgumentBinder

    createSpecific
  • Constructor Details

    • KafkaPartitionBinder

      public KafkaPartitionBinder(io.micronaut.core.convert.ConversionService conversionService)
      Default constructor.
      Parameters:
      conversionService - The conversion service
  • Method Details

    • annotationType

      public Class<KafkaPartition> annotationType()
      Specified by:
      annotationType in interface AnnotatedConsumerRecordBinder<KafkaPartition,T>
      Returns:
      The annotation type
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<T,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>