Interface KafkaInboundEndpoint
- All Known Implementing Classes:
- KafkaInboundGateway,- KafkaMessageDrivenChannelAdapter
public interface KafkaInboundEndpoint
Implementations of this interface will generally support a retry template for retrying
 incoming deliveries and this supports adding common attributes to the retry context.
- Since:
- 6.0
- Author:
- Gary Russell
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringRetryContextattribute key for an acknowledgment if the listener is capable of acknowledging.static final StringRetryContextattribute key for the consumer if the listener is consumer-aware.static final StringRetryContextattribute key for the record.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voiddoWithRetry(org.springframework.retry.support.RetryTemplate template, org.springframework.retry.RecoveryCallback<?> callback, Object data, org.springframework.kafka.support.Acknowledgment acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, Runnable runnable) Execute the runnable with the retry template and recovery callback.
- 
Field Details- 
CONTEXT_ACKNOWLEDGMENTRetryContextattribute key for an acknowledgment if the listener is capable of acknowledging.- See Also:
 
- 
CONTEXT_CONSUMERRetryContextattribute key for the consumer if the listener is consumer-aware.- See Also:
 
- 
CONTEXT_RECORDRetryContextattribute key for the record.- See Also:
 
 
- 
- 
Method Details- 
doWithRetrydefault void doWithRetry(org.springframework.retry.support.RetryTemplate template, org.springframework.retry.RecoveryCallback<?> callback, Object data, org.springframework.kafka.support.Acknowledgment acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, Runnable runnable) Execute the runnable with the retry template and recovery callback.- Parameters:
- template- the template.
- callback- the callback.
- record- the record (or records).
- acknowledgment- the acknowledgment.
- consumer- the consumer.
- runnable- the runnable.
 
 
-