@Singleton
public class ConsumerRecordBinderRegistry
extends java.lang.Object
implements io.micronaut.core.bind.ArgumentBinderRegistry<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
ConsumerRecordBinder
.Constructor and Description |
---|
ConsumerRecordBinderRegistry(ConsumerRecordBinder<?>... binders)
Creates the registry for the given binders.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source) |
public ConsumerRecordBinderRegistry(ConsumerRecordBinder<?>... binders)
binders
- The binderspublic <T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> source)
findArgumentBinder
in interface io.micronaut.core.bind.ArgumentBinderRegistry<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>