public class SendToDlqAndContinue extends Object implements org.springframework.kafka.listener.ConsumerRecordRecoverer
ConsumerRecordRecoverer that keeps a collection of
recoverer objects per input topics. These topics might be per input binding or multiplexed
topics in a single binding.| Constructor and Description |
|---|
SendToDlqAndContinue() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord,
Exception e) |
void |
sendToDlq(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord,
Exception exception)
For a given topic, send the key/value record to DLQ topic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic void sendToDlq(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord,
Exception exception)
consumerRecord - consumer recordexception - exceptionpublic void accept(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord,
Exception e)
accept in interface BiConsumer<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>,Exception>Copyright © 2021 Pivotal Software, Inc.. All rights reserved.