T - The target type@Singleton public class KafkaKeyBinder<T> extends Object implements AnnotatedConsumerRecordBinder<KafkaKey,T>
KafkaKey.ArgumentBinder.BindingResult<T>| Constructor and Description |
|---|
KafkaKeyBinder() |
| Modifier and Type | Method and Description |
|---|---|
Class<KafkaKey> |
annotationType() |
ArgumentBinder.BindingResult<T> |
bind(ArgumentConversionContext<T> context,
ConsumerRecord<?,?> source)
Bind the given argument from the given source.
|
public Class<KafkaKey> annotationType()
annotationType in interface AnnotatedConsumerRecordBinder<KafkaKey,T>public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, ConsumerRecord<?,?> source)
ArgumentBinderbind in interface ArgumentBinder<T,ConsumerRecord<?,?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()