Class KafkaErrorSendingMessageRecoverer
java.lang.Object
org.springframework.integration.core.ErrorMessagePublisher
org.springframework.integration.kafka.inbound.KafkaErrorSendingMessageRecoverer
- All Implemented Interfaces:
- BiConsumer<org.apache.kafka.clients.consumer.ConsumerRecord<?,,- ?>, Exception> - Aware,- BeanFactoryAware,- org.springframework.kafka.listener.ConsumerRecordRecoverer
public class KafkaErrorSendingMessageRecoverer
extends ErrorMessagePublisher
implements org.springframework.kafka.listener.ConsumerRecordRecoverer
An extension of 
ErrorMessagePublisher that can be used in a
 CommonErrorHandler for recovering Kafka
 delivery failures.- Since:
- 6.0
- Author:
- Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.core.ErrorMessagePublisherlogger, messagingTemplate
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an instance to send to the channel with theRawRecordHeaderErrorMessageStrategy.KafkaErrorSendingMessageRecoverer(MessageChannel channel, ErrorMessageStrategy errorMessageStrategy) Construct an instance to send the channel, using the error message strategy.
- 
Method SummaryMethods inherited from class org.springframework.integration.core.ErrorMessagePublisherdeterminePayload, getChannel, getChannelResolver, getErrorMessageStrategy, getMessagingTemplate, payloadWhenNull, publish, publish, publish, publish, publish, setBeanFactory, setChannel, setChannelName, setChannelResolver, setErrorMessageStrategy, setSendTimeoutMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumerandThen
- 
Constructor Details- 
KafkaErrorSendingMessageRecovererConstruct an instance to send to the channel with theRawRecordHeaderErrorMessageStrategy.- Parameters:
- channel- the channel.
 
- 
KafkaErrorSendingMessageRecovererpublic KafkaErrorSendingMessageRecoverer(MessageChannel channel, ErrorMessageStrategy errorMessageStrategy) Construct an instance to send the channel, using the error message strategy.- Parameters:
- channel- the channel.
- errorMessageStrategy- the strategy.
 
 
- 
- 
Method Details- 
accept- Specified by:
- acceptin interface- BiConsumer<org.apache.kafka.clients.consumer.ConsumerRecord<?,- ?>, Exception> 
 
 
-