T
- The target type@Singleton public class KafkaHeaderBinder<T> extends java.lang.Object implements AnnotatedConsumerRecordBinder<io.micronaut.messaging.annotation.Header,T>
Constructor and Description |
---|
KafkaHeaderBinder() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<io.micronaut.messaging.annotation.Header> |
annotationType() |
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> |
bind(io.micronaut.core.convert.ArgumentConversionContext<T> context,
org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source) |
public java.lang.Class<io.micronaut.messaging.annotation.Header> annotationType()
annotationType
in interface AnnotatedConsumerRecordBinder<io.micronaut.messaging.annotation.Header,T>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<T,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>