K
- the key type.V
- the value type.public static class KafkaMessageSource.KafkaAckCallbackFactory<K,V> extends Object implements AcknowledgmentCallbackFactory<KafkaMessageSource.KafkaAckInfo<K,V>>
Constructor and Description |
---|
KafkaAckCallbackFactory(org.springframework.kafka.listener.ConsumerProperties consumerProperties)
Construct an instance with the provided properties.
|
Modifier and Type | Method and Description |
---|---|
AcknowledgmentCallback |
createCallback(KafkaMessageSource.KafkaAckInfo<K,V> info)
Create the callback.
|
public KafkaAckCallbackFactory(org.springframework.kafka.listener.ConsumerProperties consumerProperties)
consumerProperties
- the properties.public AcknowledgmentCallback createCallback(KafkaMessageSource.KafkaAckInfo<K,V> info)
AcknowledgmentCallbackFactory
createCallback
in interface AcknowledgmentCallbackFactory<KafkaMessageSource.KafkaAckInfo<K,V>>
info
- information for the callback to process the acknowledgment.