@Singleton public class BatchConsumerRecordsBinderRegistry extends Object implements ArgumentBinderRegistry<ConsumerRecords<?,?>>
ConsumerRecords
instance.Constructor and Description |
---|
BatchConsumerRecordsBinderRegistry(ConsumerRecordBinderRegistry consumerRecordBinderRegistry)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> Optional<ArgumentBinder<T,ConsumerRecords<?,?>>> |
findArgumentBinder(Argument<T> argument,
ConsumerRecords<?,?> source)
Locate an
ArgumentBinder for the given argument and source type. |
public BatchConsumerRecordsBinderRegistry(ConsumerRecordBinderRegistry consumerRecordBinderRegistry)
consumerRecordBinderRegistry
- The wrapped ConsumerRecordBinderRegistry
public <T> Optional<ArgumentBinder<T,ConsumerRecords<?,?>>> findArgumentBinder(Argument<T> argument, ConsumerRecords<?,?> source)
ArgumentBinderRegistry
ArgumentBinder
for the given argument and source type.findArgumentBinder
in interface ArgumentBinderRegistry<ConsumerRecords<?,?>>
T
- The argument typeargument
- The argumentsource
- The sourceOptional
of ArgumentBinder