T
- The target type@Singleton public class KafkaKeyBinder<T> extends java.lang.Object implements AnnotatedConsumerRecordBinder<KafkaKey,T>
KafkaKey
.Constructor and Description |
---|
KafkaKeyBinder() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<KafkaKey> |
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<KafkaKey> annotationType()
annotationType
in interface AnnotatedConsumerRecordBinder<KafkaKey,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<?,?>>