@Singleton public class KafkaHeadersBinder extends java.lang.Object implements TypedConsumerRecordBinder<io.micronaut.messaging.MessageHeaders>
MessageHeaders
object for Kafka.Modifier and Type | Field and Description |
---|---|
static io.micronaut.core.type.Argument<io.micronaut.messaging.MessageHeaders> |
TYPE |
Constructor and Description |
---|
KafkaHeadersBinder() |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.type.Argument<io.micronaut.messaging.MessageHeaders> |
argumentType() |
io.micronaut.core.bind.ArgumentBinder.BindingResult<io.micronaut.messaging.MessageHeaders> |
bind(io.micronaut.core.convert.ArgumentConversionContext<io.micronaut.messaging.MessageHeaders> context,
org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source) |
public static final io.micronaut.core.type.Argument<io.micronaut.messaging.MessageHeaders> TYPE
public io.micronaut.core.type.Argument<io.micronaut.messaging.MessageHeaders> argumentType()
argumentType
in interface io.micronaut.core.bind.TypeArgumentBinder<io.micronaut.messaging.MessageHeaders,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<io.micronaut.messaging.MessageHeaders> bind(io.micronaut.core.convert.ArgumentConversionContext<io.micronaut.messaging.MessageHeaders> context, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<io.micronaut.messaging.MessageHeaders,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>